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

PDFTrueTypeFont Class Members
In This Topic

The following tables list the members exposed by PDFTrueTypeFont.

Public Constructors

| Name | Description
--- | --- | ---
| PDFTrueTypeFont Constructor | Overloaded.

Top
Protected Fields

| Name | Description
--- | --- | ---
| bold | (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| cosFont | (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| enableTextCopy |
| encoding | (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| fontFeatures |
| fontMetrics | (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| italic | (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| label | (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| otfFont |
| size | (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)

Top
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.
| convertToUnicode | 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getCharacterSpacing | Gets the character spacing to be used by this font. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getEncoding | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getFittedTextLength | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getFontFeatures | Gets the fonts features that were used when the font was created.
| getFontName | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getGlyphEmWidth | Gets the Em width of the given glyph when drawn with this font Object.
| getGlyphOutline | This method supports the internal library infrastructure and should not be used by external client code.
| getGlyphWidth | This method supports the internal library infrastructure and should not be used by external client code.
| getGlyphWidths | 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.
| getIsFontSubset | 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getName | Gets the name of this font.
| getOtfFont | This method supports the internal library infrastructure and should not be used by external client code.
| getSize | Gets the font size. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getStrikethroughOffset | Gets the strikethrough offset. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getTextRenderingMode | Gets the text rendering mode. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getToUnicodeCMap | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| getUnitsPerEm | 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| isItalic | Gets a value indicating whether the font is italic. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| isStrikethrough | Gets a value indicating whether the font is strikethrough. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| isUnderline | Gets a value indicating whether the font is underlined. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setCosFont | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setData | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setEncoding | This method supports the internal library infrastructure and should not be used by external client code. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setIsFontSubset | 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.
| setOtfFont | This method supports the internal library infrastructure and should not be used by external client code.
| setSize | Sets the font size. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setStrikethrough | Sets a value indicating whether the font is strikethrough. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setStrikethroughOffset | Sets the strikethrough offset. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setTextRenderingMode | Sets the text rendering mode. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setUnderline | Sets a value indicating whether the font is underlined. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| setUsedChars | This method supports the internal library infrastructure and should not be used by external client code.
| setUsedGlyphs | 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. (Inherited from com.o2sol.pdf4java.graphics.fonts.PDFFont)
| updateCharsSubset | Updates the set of characters that must be subset in the final font data.
| updateGlyphsSubset | Updates the set of glyphs that must be subset in the final font data.

Top
Protected Methods

| Name | Description
--- | --- | ---
| updateWidthsForGlyph |

Top
See Also

#### Reference

PDFTrueTypeFont Class
com.o2sol.pdf4java.graphics.fonts.truetype Package

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.