| Modifier and Type | Class and Description |
|---|---|
| public static interface | TrueTypeCollection.
Implement the callback method to call |
| public static interface | TrueTypeCollection.
Implement the callback method to call |
| Modifier and Type | Field and Description |
|---|---|
| private final long[] | |
| private final int | |
| private final TTFDataStream |
| Access | Constructor and Description |
|---|---|
| public | |
| public | TrueTypeCollection(InputStream
A TTC input stream. stream)Creates a new TrueTypeCollection from a .ttc input stream. |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| private static TTFDataStream | |
| private TTFParser | |
| private TrueTypeFont | |
| public TrueTypeFont | Returns: The found font, nor null if none is found.The postscript name of the font. name)Get a TT font from a collection. |
| public static void | processAllFontHeaders(File ttcFile, TrueTypeCollection.
the object with the callback method. trueTypeFontProcessorRun the callback for each TT font in the collection. |
| public void | processAllFonts(TrueTypeCollection.
the object with the callback method. trueTypeFontProcessorRun the callback for each TT font in the collection. |
| fontOffsets | back to summary |
|---|---|
| private final long[] fontOffsets | |
| numFonts | back to summary |
|---|---|
| private final int numFonts | |
| stream | back to summary |
|---|---|
| private final TTFDataStream stream | |
| TrueTypeCollection | back to summary |
|---|---|
| public TrueTypeCollection(File file) throws IOException Creates a new TrueTypeCollection from a .ttc file.
| |
| TrueTypeCollection | back to summary |
|---|---|
| public TrueTypeCollection(InputStream stream) throws IOException Creates a new TrueTypeCollection from a .ttc input stream.
| |
| TrueTypeCollection | back to summary |
|---|---|
| private TrueTypeCollection(TTFDataStream stream) throws IOException Creates a new TrueTypeCollection from a RandomAccessRead.
| |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| createBufferedDataStream | back to summary |
|---|---|
| private static TTFDataStream createBufferedDataStream(RandomAccessRead randomAccessRead, boolean closeAfterReading) throws IOException | |
| createFontParserAtIndexAndSeek | back to summary |
|---|---|
| private TTFParser createFontParserAtIndexAndSeek(int idx) throws IOException | |
| getFontAtIndex | back to summary |
|---|---|
| private TrueTypeFont getFontAtIndex(int idx) throws IOException | |
| getFontByName | back to summary |
|---|---|
| public TrueTypeFont getFontByName(String name) throws IOException Get a TT font from a collection.
| |
| processAllFontHeaders | back to summary |
|---|---|
| public static void processAllFontHeaders(File ttcFile, TrueTypeCollection. Run the callback for each TT font in the collection.
| |
| processAllFonts | back to summary |
|---|---|
| public void processAllFonts(TrueTypeCollection. Run the callback for each TT font in the collection.
| |
TrueTypeCollection#processAllFontHeaders(File, TrueTypeFontHeadersProcessor).
| Modifier and Type | Method and Description |
|---|---|
| public void |
| process | back to summary |
|---|---|
| public void process(FontHeaders fontHeaders) | |
TrueTypeCollection#processAllFonts(TrueTypeFontProcessor).
| Modifier and Type | Method and Description |
|---|---|
| public void |
| process | back to summary |
|---|---|
| public void process(TrueTypeFont ttf) throws IOException | |