Declared in UIFont+BFKit.h

Overview

This category adds some useful methods to UIFont

Tasks

Class Methods

allFamilyAndFonts

+ (NSDictionary *_Nonnull)allFamilyAndFonts
Discussion

Print in console all family and font names

Return Value

Returns all the font family names

Declared In

UIFont+BFKit.h

boldFont

+ (UIFont *_Nullable)boldFont
Discussion

Static bold font to use in App

Return Value

Returns bold font to use in App

Declared In

UIFont+BFKit.h

fontForFontName:size:

+ (UIFont *_Nonnull)fontForFontName:(FontName)fontName size:(CGFloat)fontSize
Discussion

Create an UIFont object from the given font name and size

Parameters

fontName

Font name

fontSize

Size of the font

Return Value

Returns an UIFont from the given font name and size

Declared In

UIFont+BFKit.h

fontsNameForFamilyName:

+ (NSArray *_Nonnull)fontsNameForFamilyName:(FamilyFontName)familyFontName
Discussion

Print in console all font names for a given family

Parameters

familyFontName

Family to print the fonts

Return Value

Returns all the fonts for the given family

Declared In

UIFont+BFKit.h

lightFont

+ (UIFont *_Nullable)lightFont
Discussion

Static light font to use in App

Return Value

Returns light font to use in App

Declared In

UIFont+BFKit.h

regularFont

+ (UIFont *_Nullable)regularFont
Discussion

Static regular font to use in App

Return Value

Returns regular font to use in App

Declared In

UIFont+BFKit.h

setBoldFont:

+ (void)setBoldFont:(UIFont *_Nullable)boldFont
Discussion

Set the new bold font for the App

Parameters

newBoldFont

The new font

Declared In

UIFont+BFKit.h

setLightFont:

+ (void)setLightFont:(UIFont *_Nullable)lightFont
Discussion

Set the new light font for the App

Parameters

newLightFont

The new font

Declared In

UIFont+BFKit.h

setRegularFont:

+ (void)setRegularFont:(UIFont *_Nullable)regularFont
Discussion

Set the new regular font for the App

Parameters

newRegularFont

The new font

Declared In

UIFont+BFKit.h