Package org.apache.fontbox.cff
Class CFFCIDFont
java.lang.Object
org.apache.fontbox.cff.CFFFont
org.apache.fontbox.cff.CFFCIDFont
- All Implemented Interfaces:
FontBoxFont
A Type 0 CIDFont represented in a CFF file. Thread safe.
- Author:
- Villu Ruusmann, John Hewson
-
Field Summary
Fields inherited from class org.apache.fontbox.cff.CFFFont
charset, charStrings, fontName, globalSubrIndex, topDict
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the fdSelect value.Returns the font dictionaries.Returns the FontMatrix.Returns the ordering value.Returns the path for the character with the given name.Returns the private dictionary.Returns the registry value.int
Returns the supplement value.getType2CharString
(int cid) Returns the Type 2 charstring for the given CID.float
Returns the advance width for the character with the given name.boolean
Returns true if the font contains the given glyph.Methods inherited from class org.apache.fontbox.cff.CFFFont
addValueToTopDict, getCharset, getCharStringBytes, getData, getFontBBox, getGlobalSubrIndex, getName, getNumCharStrings, getTopDict, toString
-
Constructor Details
-
CFFCIDFont
public CFFCIDFont()
-
-
Method Details
-
getRegistry
Returns the registry value. * @return the registry -
getOrdering
Returns the ordering value.- Returns:
- the ordering
-
getSupplement
public int getSupplement()Returns the supplement value.- Returns:
- the supplement
-
getFontDicts
Returns the font dictionaries.- Returns:
- the fontDict
-
getPrivDicts
Returns the private dictionary.- Returns:
- the privDict
-
getFdSelect
Returns the fdSelect value.- Returns:
- the fdSelect
-
getType2CharString
Returns the Type 2 charstring for the given CID.- Specified by:
getType2CharString
in classCFFFont
- Parameters:
cid
- CID- Throws:
IOException
- if the charstring could not be read
-
getFontMatrix
Description copied from class:CFFFont
Returns the FontMatrix.- Specified by:
getFontMatrix
in interfaceFontBoxFont
- Specified by:
getFontMatrix
in classCFFFont
-
getPath
Description copied from interface:FontBoxFont
Returns the path for the character with the given name.- Returns:
- glyph path
- Throws:
IOException
- if the path could not be read
-
getWidth
Description copied from interface:FontBoxFont
Returns the advance width for the character with the given name.- Returns:
- glyph advance width
- Throws:
IOException
- if the path could not be read
-
hasGlyph
Description copied from interface:FontBoxFont
Returns true if the font contains the given glyph.- Parameters:
selector
- PostScript glyph name- Throws:
IOException
-