Top Description Methods
org.apache.pdfbox.pdmodel.font

public Interface PDVectorFont

Known Direct Implementers
org.apache.pdfbox.pdmodel.font.PDCIDFont, org.apache.pdfbox.pdmodel.font.PDTrueTypeFont, org.apache.pdfbox.pdmodel.font.PDType0Font, org.apache.pdfbox.pdmodel.font.PDType1CFont, org.apache.pdfbox.pdmodel.font.PDType1Font
Imports
java.awt.geom.GeneralPath, java.io.IOException

A vector outline font, e.g. not Type 3.
Author
John Hewson

Method Summary

Modifier and TypeMethod and Description
public GeneralPath

Returns:

the normalized glyph path for the given character code
getNormalizedPath
(int
character code in a PDF. Not to be confused with unicode.
code
)

Returns the normalized glyph path for the given character code in a PDF.

public GeneralPath

Returns:

the glyph path for the given character code
getPath
(int
character code in a PDF. Not to be confused with unicode.
code
)

Returns the glyph path for the given character code.

public boolean

Returns:

true if this font contains a glyph for the given character code
hasGlyph
(int
character code in a PDF. Not to be confused with unicode.
code
)

Returns true if this font contains a glyph for the given character code in a PDF.

Method Detail

getNormalizedPathback to summary
public GeneralPath getNormalizedPath(int code) throws IOException

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:int

character code in a PDF. Not to be confused with unicode.

Returns:GeneralPath

the normalized glyph path for the given character code

Exceptions
IOException:
if the font could not be read
getPathback to summary
public GeneralPath getPath(int code) throws IOException

Returns the glyph path for the given character code.

Parameters
code:int

character code in a PDF. Not to be confused with unicode.

Returns:GeneralPath

the glyph path for the given character code

Exceptions
IOException:
if the font could not be read
hasGlyphback to summary
public boolean hasGlyph(int code) throws IOException

Returns true if this font contains a glyph for the given character code in a PDF.

Parameters
code:int

character code in a PDF. Not to be confused with unicode.

Returns:boolean

true if this font contains a glyph for the given character code

Exceptions
IOException:
if the font could not be read