CPDFFont Class Reference

Inherits from NSObject
Declared in CPDFFont.h

  familyNames

Returns an array of font family names for all installed fonts.

@property (class, nonatomic, readonly) NSArray<NSString*> *familyNames

Discussion

Returns an array of font family names for all installed fonts.

Declared In

CPDFFont.h

  familyName

The font family name of the font.

@property (readonly, nonatomic) NSString *familyName

Discussion

The font family name of the font.

Declared In

CPDFFont.h

  styleName

The style name of the font.

@property (readonly, nonatomic) NSString *styleName

Discussion

The style name of the font.

Declared In

CPDFFont.h

– initWithFamilyName:fontStyle:

Initialize a font name object.

- (instancetype)initWithFamilyName:(NSString *)familyName fontStyle:(NSString *)fontStyle

Parameters

familyName

The font family name of the font

fontStyle

The style name of the font

Discussion

Initialize a font name object.

Directly on objects using font names, adjusting initWithFamilyName: creates an illegal NULL type.

Declared In

CPDFFont.h

+ fontNamesForFamilyName:

Returns an array of font names for the specified family name

+ (NSArray<NSString*> *)fontNamesForFamilyName:(NSString *)familyName

Discussion

Returns an array of font names for the specified family name

Declared In

CPDFFont.h

+ mappingFontWithFontString:

Mapped font Default CPDFFont : Helvetica

+ (CPDFFont *_Nullable)mappingFontWithFontString:(NSString *_Nullable)fontName

Discussion

Mapped font Default CPDFFont : Helvetica

Declared In

CPDFFont.h

+ convertAppleFont:

Convert to the corresponding font name Default : Helvetica

+ (NSString *_Nullable)convertAppleFont:(CPDFFont *_Nonnull)cPDFFont

Discussion

Convert to the corresponding font name Default : Helvetica

Declared In

CPDFFont.h