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*> *familyNamesDiscussion
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 *familyNameDiscussion
The font family name of the font.
Declared In
CPDFFont.h
styleName
The style name of the font.
@property (readonly, nonatomic) NSString *styleNameDiscussion
The style name of the font.
Declared In
CPDFFont.h
– initWithFamilyName:fontStyle:
Initialize a font name object.
- (instancetype)initWithFamilyName:(NSString *)familyName fontStyle:(NSString *)fontStyleParameters
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 *)familyNameDiscussion
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)fontNameDiscussion
Mapped font Default CPDFFont : Helvetica
Declared In
CPDFFont.h
+ convertAppleFont:
Convert to the corresponding font name Default : Helvetica
+ (NSString *_Nullable)convertAppleFont:(CPDFFont *_Nonnull)cPDFFontDiscussion
Convert to the corresponding font name Default : Helvetica
Declared In
CPDFFont.h