private static class FileSystemFontProvider.FSFontInfo extends FontInfo
Modifier and Type | Field and Description |
---|---|
private CIDSystemInfo |
cidSystemInfo |
private java.io.File |
file |
private FontFormat |
format |
private int |
macStyle |
private PDPanoseClassification |
panose |
private FileSystemFontProvider |
parent |
private java.lang.String |
postScriptName |
private int |
sFamilyClass |
private int |
ulCodePageRange1 |
private int |
ulCodePageRange2 |
private int |
usWeightClass |
Modifier | Constructor and Description |
---|---|
private |
FSFontInfo(java.io.File file,
FontFormat format,
java.lang.String postScriptName,
CIDSystemInfo cidSystemInfo,
int usWeightClass,
int sFamilyClass,
int ulCodePageRange1,
int ulCodePageRange2,
int macStyle,
byte[] panose,
FileSystemFontProvider parent) |
Modifier and Type | Method and Description |
---|---|
CIDSystemInfo |
getCIDSystemInfo()
Returns the CIDSystemInfo associated with the font, if any.
|
int |
getCodePageRange1()
Returns the ulCodePageRange1 field of the "OS/2" table, or 0.
|
int |
getCodePageRange2()
Returns the ulCodePageRange2 field of the "OS/2" table, or 0.
|
int |
getFamilyClass()
Returns the sFamilyClass field of the "OS/2" table, or -1.
|
FontBoxFont |
getFont()
Returns a new FontBox font instance for the font.
|
FontFormat |
getFormat()
Returns the font's format.
|
int |
getMacStyle()
Returns the macStyle field of the "head" table, or -1.
|
private OpenTypeFont |
getOTFFont(java.lang.String postScriptName,
java.io.File file) |
PDPanoseClassification |
getPanose()
Returns the Panose classification of the font, if any.
|
java.lang.String |
getPostScriptName()
Returns the PostScript name of the font.
|
private TrueTypeFont |
getTrueTypeFont(java.lang.String postScriptName,
java.io.File file) |
private Type1Font |
getType1Font(java.lang.String postScriptName,
java.io.File file) |
int |
getWeightClass()
Returns the usWeightClass field of the "OS/2" table, or -1.
|
private TrueTypeFont |
readTrueTypeFont(java.lang.String postScriptName,
java.io.File file) |
java.lang.String |
toString() |
getCodePageRange, getWeightClassAsPanose
private final java.lang.String postScriptName
private final FontFormat format
private final CIDSystemInfo cidSystemInfo
private final int usWeightClass
private final int sFamilyClass
private final int ulCodePageRange1
private final int ulCodePageRange2
private final int macStyle
private final PDPanoseClassification panose
private final java.io.File file
private final FileSystemFontProvider parent
private FSFontInfo(java.io.File file, FontFormat format, java.lang.String postScriptName, CIDSystemInfo cidSystemInfo, int usWeightClass, int sFamilyClass, int ulCodePageRange1, int ulCodePageRange2, int macStyle, byte[] panose, FileSystemFontProvider parent)
public java.lang.String getPostScriptName()
FontInfo
getPostScriptName
in class FontInfo
public FontFormat getFormat()
FontInfo
public CIDSystemInfo getCIDSystemInfo()
FontInfo
getCIDSystemInfo
in class FontInfo
public FontBoxFont getFont()
FontCache
.
The method returns null if there is there was an error opening the font.
public int getFamilyClass()
FontInfo
getFamilyClass
in class FontInfo
public int getWeightClass()
FontInfo
getWeightClass
in class FontInfo
public int getCodePageRange1()
FontInfo
getCodePageRange1
in class FontInfo
public int getCodePageRange2()
FontInfo
getCodePageRange2
in class FontInfo
public int getMacStyle()
FontInfo
getMacStyle
in class FontInfo
public PDPanoseClassification getPanose()
FontInfo
private TrueTypeFont getTrueTypeFont(java.lang.String postScriptName, java.io.File file)
private TrueTypeFont readTrueTypeFont(java.lang.String postScriptName, java.io.File file) throws java.io.IOException
java.io.IOException
private OpenTypeFont getOTFFont(java.lang.String postScriptName, java.io.File file)
private Type1Font getType1Font(java.lang.String postScriptName, java.io.File file)