| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final FontCache | |
| private static final String | |
| private final List | |
| private static final Log | |
| private static final boolean | SKIP_CHECKSUMS
This option changes publicly visible behaviour: ".pdfbox.cache" file will have hash="-" for all files. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | addTrueTypeFontImpl(FontHeaders fontHeaders, File file, String hash)
Adds an OTF or TTF font to the file cache. |
| private void | |
| private static String | |
| private FileSystemFontProvider. | |
| private File | |
| public List | getFontInfo()
Implements abstract org. Returns a list of information about fonts on the system. |
| private static boolean | |
| private List | |
| private void | |
| private void | |
| public String | toDebugString()
Implements abstract org. Returns a string containing debugging information. |
| private void |
| cache | back to summary |
|---|---|
| private final FontCache cache | |
| CHECKSUM_PLACEHOLDER | back to summary |
|---|---|
| private static final String CHECKSUM_PLACEHOLDER | |
| fontInfoList | back to summary |
|---|---|
| private final List<FileSystemFontProvider. | |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| SKIP_CHECKSUMS | back to summary |
|---|---|
| private static final boolean SKIP_CHECKSUMS This option changes publicly visible behaviour: ".pdfbox.cache" file will have hash="-" for all files.
After implementing | |
| FileSystemFontProvider | back to summary |
|---|---|
| pack-priv FileSystemFontProvider(FontCache cache) Constructor. | |
| addTrueTypeCollection | back to summary |
|---|---|
| private void addTrueTypeCollection(final File ttcFile) Adds a TTC or OTC to the file cache. To reduce memory, the parsed font is not cached. | |
| addTrueTypeFont | back to summary |
|---|---|
| private void addTrueTypeFont(File ttfFile) Adds an OTF or TTF font to the file cache. To reduce memory, the parsed font is not cached. | |
| addTrueTypeFontImpl | back to summary |
|---|---|
| private void addTrueTypeFontImpl(FontHeaders fontHeaders, File file, String hash) Adds an OTF or TTF font to the file cache. To reduce memory, the parsed font is not cached. | |
| addType1Font | back to summary |
|---|---|
| private void addType1Font(File pfbFile) Adds a Type 1 font to the file cache. To reduce memory, the parsed font is not cached. | |
| computeHash | back to summary |
|---|---|
| private static String computeHash(InputStream is) throws IOException | |
| createFSIgnored | back to summary |
|---|---|
| private FileSystemFontProvider. | |
| getDiskCacheFile | back to summary |
|---|---|
| private File getDiskCacheFile() | |
| getFontInfo | back to summary |
|---|---|
| public List Implements abstract org. Doc from org. Returns a list of information about fonts on the system. | |
| isBadPath | back to summary |
|---|---|
| private static boolean isBadPath(String path) | |
| loadDiskCache | back to summary |
|---|---|
| private List Loads the font metadata cache from disk. | |
| saveDiskCache | back to summary |
|---|---|
| private void saveDiskCache() Saves the font metadata cache to disk. | |
| scanFonts | back to summary |
|---|---|
| private void scanFonts(List<File> files) | |
| toDebugString | back to summary |
|---|---|
| public String toDebugString() Implements abstract org. Doc from org. Returns a string containing debugging information. This will be written to the log if no suitable fonts are found and no fallback fonts are available. May be null. | |
| writeFontInfo | back to summary |
|---|---|
| private void writeFontInfo(BufferedWriter writer, FileSystemFontProvider. | |
| Modifier and Type | Field and Description |
|---|---|
| private final CIDSystemInfo | |
| private final File | |
| private final FontFormat | |
| private final String | |
| private final long | |
| private final int | |
| private final PDPanoseClassification | |
| private final FileSystemFontProvider | |
| private final String | |
| private final int | |
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private | FSFontInfo(File file, FontFormat format, String postScriptName, CIDSystemInfo cidSystemInfo, int usWeightClass, int sFamilyClass, int ulCodePageRange1, int ulCodePageRange2, int macStyle, byte[] panose, FileSystemFontProvider parent, String hash, long lastModified)
|
| Modifier and Type | Method and Description |
|---|---|
| public CIDSystemInfo | getCIDSystemInfo()
Implements abstract org. Returns the CIDSystemInfo associated with the font, if present. |
| public int | getCodePageRange1()
Implements abstract org. Returns the ulCodePageRange1 field of the "OS/2" table, or 0. |
| public int | getCodePageRange2()
Implements abstract org. Returns the ulCodePageRange2 field of the "OS/2" table, or 0. |
| public int | getFamilyClass()
Implements abstract org. Returns the sFamilyClass field of the "OS/2" table, or -1. |
| public synchronized FontBoxFont | getFont()
Implements abstract org. Returns a new FontBox font instance for the font. |
| public FontFormat | getFormat()
Implements abstract org. Returns the font's format. |
| public int | getMacStyle()
Implements abstract org. Returns the macStyle field of the "head" table, or -1. |
| private OpenTypeFont | |
| public PDPanoseClassification | getPanose()
Implements abstract org. Returns the Panose classification of the font, if any. |
| public String | getPostScriptName()
Implements abstract org. Returns the PostScript name of the font. |
| private TrueTypeFont | |
| private Type1Font | |
| public int | getWeightClass()
Implements abstract org. Returns the usWeightClass field of the "OS/2" table, or -1. |
| private TrueTypeFont | |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| cidSystemInfo | back to summary |
|---|---|
| private final CIDSystemInfo cidSystemInfo | |
| file | back to summary |
|---|---|
| private final File file | |
| format | back to summary |
|---|---|
| private final FontFormat format | |
| hash | back to summary |
|---|---|
| private final String hash | |
| lastModified | back to summary |
|---|---|
| private final long lastModified | |
| macStyle | back to summary |
|---|---|
| private final int macStyle | |
| panose | back to summary |
|---|---|
| private final PDPanoseClassification panose | |
| parent | back to summary |
|---|---|
| private final FileSystemFontProvider parent | |
| postScriptName | back to summary |
|---|---|
| private final String postScriptName | |
| sFamilyClass | back to summary |
|---|---|
| private final int sFamilyClass | |
| ulCodePageRange1 | back to summary |
|---|---|
| private final int ulCodePageRange1 | |
| ulCodePageRange2 | back to summary |
|---|---|
| private final int ulCodePageRange2 | |
| usWeightClass | back to summary |
|---|---|
| private final int usWeightClass | |
| FSFontInfo | back to summary |
|---|---|
| private FSFontInfo(File file, FontFormat format, String postScriptName, CIDSystemInfo cidSystemInfo, int usWeightClass, int sFamilyClass, int ulCodePageRange1, int ulCodePageRange2, int macStyle, byte[] panose, FileSystemFontProvider parent, String hash, long lastModified) | |
| getCIDSystemInfo | back to summary |
|---|---|
| public CIDSystemInfo getCIDSystemInfo() Implements abstract org. Doc from org. Returns the CIDSystemInfo associated with the font, if present.
| |
| getCodePageRange1 | back to summary |
|---|---|
| public int getCodePageRange1() Implements abstract org. Doc from org. Returns the ulCodePageRange1 field of the "OS/2" table, or 0.
| |
| getCodePageRange2 | back to summary |
|---|---|
| public int getCodePageRange2() Implements abstract org. Doc from org. Returns the ulCodePageRange2 field of the "OS/2" table, or 0.
| |
| getFamilyClass | back to summary |
|---|---|
| public int getFamilyClass() Implements abstract org. Doc from org. Returns the sFamilyClass field of the "OS/2" table, or -1.
| |
| getFont | back to summary |
|---|---|
| public synchronized FontBoxFont getFont() Implements abstract org. Doc from org. 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 The method returns null if there is there was an error opening the font.
| |
| getFormat | back to summary |
|---|---|
| public FontFormat getFormat() Implements abstract org. Doc from org. Returns the font's format.
| |
| getMacStyle | back to summary |
|---|---|
| public int getMacStyle() Implements abstract org. Doc from org. Returns the macStyle field of the "head" table, or -1.
| |
| getOTFFont | back to summary |
|---|---|
| private OpenTypeFont getOTFFont(String postScriptName, File file) | |
| getPanose | back to summary |
|---|---|
| public PDPanoseClassification getPanose() Implements abstract org. Doc from org. Returns the Panose classification of the font, if any.
| |
| getPostScriptName | back to summary |
|---|---|
| public String getPostScriptName() Implements abstract org. Doc from org. Returns the PostScript name of the font. | |
| getTrueTypeFont | back to summary |
|---|---|
| private TrueTypeFont getTrueTypeFont(String postScriptName, File file) | |
| getType1Font | back to summary |
|---|---|
| private Type1Font getType1Font(String postScriptName, File file) | |
| getWeightClass | back to summary |
|---|---|
| public int getWeightClass() Implements abstract org. Doc from org. Returns the usWeightClass field of the "OS/2" table, or -1.
| |
| readTrueTypeFont | back to summary |
|---|---|
| private TrueTypeFont readTrueTypeFont(String postScriptName, File file) throws IOException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |