Package org.apache.pdfbox.pdmodel.font
Interface PDVectorFont
- All Known Implementing Classes:
PDCIDFont,PDCIDFontType0,PDCIDFontType2,PDMMType1Font,PDTrueTypeFont,PDType0Font,PDType1CFont,PDType1Font
public interface PDVectorFont
A vector outline font, e.g. not Type 3.
-
Method Summary
Modifier and TypeMethodDescriptiongetNormalizedPath(int code) Returns the normalized glyph path for the given character code in a PDF.getPath(int code) Returns the glyph path for the given character code.booleanhasGlyph(int code) Returns true if this font contains a glyph for the given character code in a PDF.
-
Method Details
-
getPath
Returns the glyph path for the given character code.- Parameters:
code- character code in a PDF. Not to be confused with unicode.- Returns:
- the glyph path for the given character code
- Throws:
IOException- if the font could not be read
-
getNormalizedPath
Returns the normalized glyph path for the given character code in a PDF. The resulting path is normalized to the PostScript 1000 unit square, and fallback glyphs are returned where appropriate, e.g. for missing glyphs.- Parameters:
code- character code in a PDF. Not to be confused with unicode.- Returns:
- the normalized glyph path for the given character code
- Throws:
IOException- if the font could not be read
-
hasGlyph
Returns true if this font contains a glyph for the given character code in a PDF.- Parameters:
code- character code in a PDF. Not to be confused with unicode.- Returns:
- true if this font contains a glyph for the given character code
- Throws:
IOException- if the font could not be read
-