iOS
ComPDFKit PDF SDK
Guides

ComPDFKit PDF SDK provides developers with programming to edit the text font style, which is easy to adjust the font of related text blocks.

 

objective-c
/**
 * Get the font name of the selected text.
 */
- (NSString *)editingSelectionFontName;

/**
 * Set the font name of the selected text.
 */
- (void)setEditingSelectionFontName:(NSString *)fontName;

/**
 * Get whether the selected text is italic.
 */
- (BOOL)isItalicCurrentSelection;

/**
 * Set the selected text is italic.
 */
- (void)setCurrentSelectionIsItalic:(BOOL)isItalic;

/**
 * Get whether the selected text is bold.
 */
- (BOOL)isBoldCurrentSelection;

/**
 * Set the selected text is bold.
 */
- (void)setCurrentSelectionIsBold:(BOOL)isBold;