Package org.apache.pdfbox.pdmodel.font
Class FontInfo
java.lang.Object
org.apache.pdfbox.pdmodel.font.FontInfo
Information about a font on the system.
- Author:
- John Hewson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CIDSystemInfo
Returns the CIDSystemInfo associated with the font, if any.abstract int
Returns the ulCodePageRange1 field of the "OS/2" table, or 0.abstract int
Returns the ulCodePageRange2 field of the "OS/2" table, or 0.abstract int
Returns the sFamilyClass field of the "OS/2" table, or -1.abstract org.apache.fontbox.FontBoxFont
getFont()
Returns a new FontBox font instance for the font.abstract FontFormat
Returns the font's format.abstract int
Returns the macStyle field of the "head" table, or -1.abstract PDPanoseClassification
Returns the Panose classification of the font, if any.abstract String
Returns the PostScript name of the font.abstract int
Returns the usWeightClass field of the "OS/2" table, or -1.toString()
-
Constructor Details
-
FontInfo
public FontInfo()
-
-
Method Details
-
getPostScriptName
Returns the PostScript name of the font. -
getFormat
Returns the font's format. -
getCIDSystemInfo
Returns the CIDSystemInfo associated with the font, if any. -
getFont
public abstract org.apache.fontbox.FontBoxFont getFont()Returns a new FontBox font instance for the font. Implementors of this method must not cache the return value of this method unless doing so via the currentFontCache
. -
getFamilyClass
public abstract int getFamilyClass()Returns the sFamilyClass field of the "OS/2" table, or -1. -
getWeightClass
public abstract int getWeightClass()Returns the usWeightClass field of the "OS/2" table, or -1. -
getCodePageRange1
public abstract int getCodePageRange1()Returns the ulCodePageRange1 field of the "OS/2" table, or 0. -
getCodePageRange2
public abstract int getCodePageRange2()Returns the ulCodePageRange2 field of the "OS/2" table, or 0. -
getMacStyle
public abstract int getMacStyle()Returns the macStyle field of the "head" table, or -1. -
getPanose
Returns the Panose classification of the font, if any. -
toString
-