Package com.tom_roush.fontbox.cff
Class CFFCIDFont
- java.lang.Object
-
- com.tom_roush.fontbox.cff.CFFFont
-
- com.tom_roush.fontbox.cff.CFFCIDFont
-
- All Implemented Interfaces:
FontBoxFont
public class CFFCIDFont extends CFFFont
A Type 0 CIDFont represented in a CFF file. Thread safe.
-
-
Field Summary
-
Fields inherited from class com.tom_roush.fontbox.cff.CFFFont
charset, charStrings, fontName, globalSubrIndex, topDict
-
-
Constructor Summary
Constructors Constructor Description CFFCIDFont()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FDSelectgetFdSelect()Returns the fdSelect value.List<Map<String,Object>>getFontDicts()Returns the font dictionaries.List<Number>getFontMatrix()Returns the FontMatrix.StringgetOrdering()Returns the ordering value.android.graphics.PathgetPath(String selector)Returns the path for the character with the given name.List<Map<String,Object>>getPrivDicts()Returns the private dictionary.StringgetRegistry()Returns the registry value.intgetSupplement()Returns the supplement value.CIDKeyedType2CharStringgetType2CharString(int cid)Returns the Type 2 charstring for the given CID.floatgetWidth(String selector)Returns the advance width for the character with the given name.booleanhasGlyph(String selector)Returns true if the font contains the given glyph.-
Methods inherited from class com.tom_roush.fontbox.cff.CFFFont
addValueToTopDict, getCharset, getData, getFontBBox, getGlobalSubrIndex, getName, getNumCharStrings, getTopDict, toString
-
-
-
-
Method Detail
-
getRegistry
public String getRegistry()
Returns the registry value. * @return the registry
-
getOrdering
public String getOrdering()
Returns the ordering value.- Returns:
- the ordering
-
getSupplement
public int getSupplement()
Returns the supplement value.- Returns:
- the supplement
-
getFontDicts
public List<Map<String,Object>> getFontDicts()
Returns the font dictionaries.- Returns:
- the fontDict
-
getPrivDicts
public List<Map<String,Object>> getPrivDicts()
Returns the private dictionary.- Returns:
- the privDict
-
getFdSelect
public FDSelect getFdSelect()
Returns the fdSelect value.- Returns:
- the fdSelect
-
getType2CharString
public CIDKeyedType2CharString getType2CharString(int cid) throws IOException
Returns the Type 2 charstring for the given CID.- Specified by:
getType2CharStringin classCFFFont- Parameters:
cid- CID- Throws:
IOException- if the charstring could not be read
-
getFontMatrix
public List<Number> getFontMatrix()
Description copied from class:CFFFontReturns the FontMatrix.- Specified by:
getFontMatrixin interfaceFontBoxFont- Specified by:
getFontMatrixin classCFFFont
-
getPath
public android.graphics.Path getPath(String selector) throws IOException
Description copied from interface:FontBoxFontReturns the path for the character with the given name.- Returns:
- glyph path
- Throws:
IOException- if the path could not be read
-
getWidth
public float getWidth(String selector) throws IOException
Description copied from interface:FontBoxFontReturns the advance width for the character with the given name.- Returns:
- glyph advance width
- Throws:
IOException- if the path could not be read
-
hasGlyph
public boolean hasGlyph(String selector) throws IOException
Description copied from interface:FontBoxFontReturns true if the font contains the given glyph.- Parameters:
selector- PostScript glyph name- Throws:
IOException
-
-