PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.fonts Package / PDFFont Class
Collapse All Expand All Members Options: Show All Members Options: Filtered
Include Inherited Members
Include Protected Members
In This Topic

PDFFont Class Methods
In This Topic

For a list of all members of this type, see PDFFont members.

Public Methods

| Name | Description
--- | --- | ---
| convertString | This method supports the internal library infrastructure and should not be used by external client code.
| convertStringJustified | This method supports the internal library infrastructure and should not be used by external client code.
| createFont | This method supports the internal library infrastructure and should not be used by external client code.
| encodeString | Encodes the given text to a byte array based on font's encoding.
| escapeString | This method supports the internal library infrastructure and should not be used by external client code.
| getAbsoluteHeight | This method supports the internal library infrastructure and should not be used by external client code.
| getBaseFont | This method supports the internal library infrastructure and should not be used by external client code.
| getCharacterSpacing | Gets the character spacing to be used by this font.
| getCharWidth | This method supports the internal library infrastructure and should not be used by external client code.
| getCosFont | This method supports the internal library infrastructure and should not be used by external client code.
| getEncoding | This method supports the internal library infrastructure and should not be used by external client code.
| getFittedTextLength | This method supports the internal library infrastructure and should not be used by external client code.
| getFontName | This method supports the internal library infrastructure and should not be used by external client code.
| getHeight | This method supports the internal library infrastructure and should not be used by external client code.
| getIsKerningAvailable | This method supports the internal library infrastructure and should not be used by external client code.
| getIsWordSpacingSupported | This method supports the internal library infrastructure and should not be used by external client code.
| getMetrics | Gets the font metrics.
| getSize | Gets the font size.
| getStrikethroughOffset | Gets the strikethrough offset.
| getTextRenderingMode | Gets the text rendering mode.
| getToUnicodeCMap | This method supports the internal library infrastructure and should not be used by external client code.
| isBold | Gets a value indicating whether the font is bold.
| isItalic | Gets a value indicating whether the font is italic.
| isStrikethrough | Gets a value indicating whether the font is strikethrough.
| isUnderline | Gets a value indicating whether the font is underlined.
| measureString | This method supports the internal library infrastructure and should not be used by external client code.
| setBold | Sets a value indicating whether the font is bold.
| setCharacterSpacing | Sets the character spacing to be used by this font.
| setCosFont | This method supports the internal library infrastructure and should not be used by external client code.
| setData | This method supports the internal library infrastructure and should not be used by external client code.
| setEncoding | This method supports the internal library infrastructure and should not be used by external client code.
| setItalic | Sets a value indicating whether the font is italic.
| setSize | Sets the font size.
| setStrikethrough | Sets a value indicating whether the font is strikethrough.
| setStrikethroughOffset | Sets the strikethrough offset.
| setTextRenderingMode | Sets the text rendering mode.
| setUnderline | Sets a value indicating whether the font is underlined.
| setUsedChars | This method supports the internal library infrastructure and should not be used by external client code.
| supportsAdvancedTypography | This method supports the internal library infrastructure and should not be used by external client code.

Top
See Also

#### Reference

PDFFont Class
com.o2sol.pdf4java.graphics.fonts Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.