Package org.apache.pdfbox.pdmodel.font
Class FontInfo
java.lang.Object
org.apache.pdfbox.pdmodel.font.FontInfo
- Direct Known Subclasses:
FileSystemFontProvider.FSFontInfo
Information about a font on the system.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CIDSystemInfoReturns the CIDSystemInfo associated with the font, if any.(package private) final longReturns the ulCodePageRange1 and ulCodePageRange1 field of the "OS/2" table, or 0.abstract intReturns the ulCodePageRange1 field of the "OS/2" table, or 0.abstract intReturns the ulCodePageRange2 field of the "OS/2" table, or 0.abstract intReturns the sFamilyClass field of the "OS/2" table, or -1.abstract FontBoxFontgetFont()Returns a new FontBox font instance for the font.abstract FontFormatReturns the font's format.abstract intReturns the macStyle field of the "head" table, or -1.abstract PDPanoseClassificationReturns the Panose classification of the font, if any.abstract StringReturns the PostScript name of the font.abstract intReturns the usWeightClass field of the "OS/2" table, or -1.(package private) final intReturns the usWeightClass field as a Panose Weight.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
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. -
getWeightClassAsPanose
final int getWeightClassAsPanose()Returns the usWeightClass field as a Panose Weight. -
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. -
getCodePageRange
final long getCodePageRange()Returns the ulCodePageRange1 and ulCodePageRange1 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
-