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

public abstract Class FontInfo

extends Object
Class Inheritance
Known Direct Subclasses
org.apache.pdfbox.pdmodel.font.FileSystemFontProvider.FSFontInfo
Imports
org.apache.fontbox.FontBoxFont

Information about a font on the system.
Author
John Hewson

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public abstract CIDSystemInfo

Returns:

the CIDSystemInof of the font if any
getCIDSystemInfo
()

Returns the CIDSystemInfo associated with the font, if present.

pack-priv final long

Returns:

the CodePageRange of the font
getCodePageRange
()

Returns the ulCodePageRange1 and ulCodePageRange1 field of the "OS/2" table, or 0.

public abstract int

Returns:

the CodePageRange1 of the font if present
getCodePageRange1
()

Returns the ulCodePageRange1 field of the "OS/2" table, or 0.

public abstract int

Returns:

the CodePageRange2 of the font if present
getCodePageRange2
()

Returns the ulCodePageRange2 field of the "OS/2" table, or 0.

public abstract int

Returns:

the FamilyClass of the font
getFamilyClass
()

Returns the sFamilyClass field of the "OS/2" table, or -1.

public abstract FontBoxFont

Returns:

a new FontBox instance of the font
getFont
()

Returns a new FontBox font instance for the font.

public abstract FontFormat

Returns:

the format of the font
getFormat
()

Returns the font's format.

public abstract int

Returns:

the MacStyle of the font
getMacStyle
()

Returns the macStyle field of the "head" table, or -1.

public abstract PDPanoseClassification

Returns:

the PanoseClassification of the font
getPanose
()

Returns the Panose classification of the font, if any.

public abstract String

Returns:

the PostScript name of the font
getPostScriptName
()

Returns the PostScript name of the font.

public abstract int

Returns:

the WeightClass of the font
getWeightClass
()

Returns the usWeightClass field of the "OS/2" table, or -1.

pack-priv final int

Returns:

the WeightClass of the font as Panose weight
getWeightClassAsPanose
()

Returns the usWeightClass field as a Panose Weight.

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Constructor Detail

FontInfoback to summary
public FontInfo()

Method Detail

getCIDSystemInfoback to summary
public abstract CIDSystemInfo getCIDSystemInfo()

Returns the CIDSystemInfo associated with the font, if present.

Returns:CIDSystemInfo

the CIDSystemInof of the font if any

getCodePageRangeback to summary
pack-priv final long getCodePageRange()

Returns the ulCodePageRange1 and ulCodePageRange1 field of the "OS/2" table, or 0.

Returns:long

the CodePageRange of the font

getCodePageRange1back to summary
public abstract int getCodePageRange1()

Returns the ulCodePageRange1 field of the "OS/2" table, or 0.

Returns:int

the CodePageRange1 of the font if present

getCodePageRange2back to summary
public abstract int getCodePageRange2()

Returns the ulCodePageRange2 field of the "OS/2" table, or 0.

Returns:int

the CodePageRange2 of the font if present

getFamilyClassback to summary
public abstract int getFamilyClass()

Returns the sFamilyClass field of the "OS/2" table, or -1.

Returns:int

the FamilyClass of the font

getFontback to summary
public abstract 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 current FontCache.

Returns:FontBoxFont

a new FontBox instance of the font

getFormatback to summary
public abstract FontFormat getFormat()

Returns the font's format.

Returns:FontFormat

the format of the font

getMacStyleback to summary
public abstract int getMacStyle()

Returns the macStyle field of the "head" table, or -1.

Returns:int

the MacStyle of the font

getPanoseback to summary
public abstract PDPanoseClassification getPanose()

Returns the Panose classification of the font, if any.

Returns:PDPanoseClassification

the PanoseClassification of the font

getPostScriptNameback to summary
public abstract String getPostScriptName()

Returns the PostScript name of the font.

Returns:String

the PostScript name of the font

getWeightClassback to summary
public abstract int getWeightClass()

Returns the usWeightClass field of the "OS/2" table, or -1.

Returns:int

the WeightClass of the font

getWeightClassAsPanoseback to summary
pack-priv final int getWeightClassAsPanose()

Returns the usWeightClass field as a Panose Weight.

Returns:int

the WeightClass of the font as Panose weight

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override