Package com.lowagie.text.pdf
Class EnumerateTTC
- java.lang.Object
-
- com.lowagie.text.pdf.BaseFont
-
- com.lowagie.text.pdf.TrueTypeFont
-
- com.lowagie.text.pdf.EnumerateTTC
-
class EnumerateTTC extends TrueTypeFont
Enumerates all the fonts inside a True Type Collection.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.lowagie.text.pdf.TrueTypeFont
TrueTypeFont.FontHeader, TrueTypeFont.HorizontalHeader, TrueTypeFont.WindowsMetrics
-
Nested classes/interfaces inherited from class com.lowagie.text.pdf.BaseFont
BaseFont.StreamFont
-
-
Field Summary
Fields Modifier and Type Field Description private static int
CFF_DATA_SFNT_VERSION
protected java.lang.String[]
names
private static int
TRUE_TYPE_SFNT_VERSION
OpenType fonts that contain TrueType outlines should use the value of 0x00010000 for the sfntVersion.-
Fields inherited from class com.lowagie.text.pdf.TrueTypeFont
allNameEntries, bboxes, cff, cffLength, cffOffset, cmap10, cmap31, cmapExt, codePages, directoryOffset, familyName, fileName, fontName, fullName, GlyphWidths, head, hhea, isFixedPitch, italicAngle, justNames, kerning, os_2, rf, style, tables, ttcIndex, underlinePosition, underlineThickness
-
Fields inherited from class com.lowagie.text.pdf.BaseFont
ASCENT, AWT_ASCENT, AWT_DESCENT, AWT_LEADING, AWT_MAXADVANCE, BBOXLLX, BBOXLLY, BBOXURX, BBOXURY, BuiltinFonts14, CACHED, CAPHEIGHT, CHAR_RANGE_ARABIC, CHAR_RANGE_CYRILLIC, CHAR_RANGE_HEBREW, CHAR_RANGE_LATIN, charBBoxes, CID_NEWLINE, compressionLevel, COURIER, COURIER_BOLD, COURIER_BOLDOBLIQUE, COURIER_OBLIQUE, CP1250, CP1252, CP1257, DESCENT, differences, directTextToByte, embedded, EMBEDDED, encoding, fastWinansi, FONT_TYPE_CJK, FONT_TYPE_DOCUMENT, FONT_TYPE_T1, FONT_TYPE_T3, FONT_TYPE_TT, FONT_TYPE_TTUNI, fontCache, fontSpecific, fontType, forceWidthsOutput, HELVETICA, HELVETICA_BOLD, HELVETICA_BOLDOBLIQUE, HELVETICA_OBLIQUE, IDENTITY_H, IDENTITY_V, includeCidSet, ITALICANGLE, MACROMAN, NOT_CACHED, NOT_EMBEDDED, notdef, RESOURCE_PATH, secureRandom, specialMap, STRIKETHROUGH_POSITION, STRIKETHROUGH_THICKNESS, SUBSCRIPT_OFFSET, SUBSCRIPT_SIZE, subset, subsetRanges, SUPERSCRIPT_OFFSET, SUPERSCRIPT_SIZE, SYMBOL, TIMES_BOLD, TIMES_BOLDITALIC, TIMES_ITALIC, TIMES_ROMAN, UNDERLINE_POSITION, UNDERLINE_THICKNESS, unicodeDifferences, widths, WINANSI, ZAPFDINGBATS
-
-
Constructor Summary
Constructors Constructor Description EnumerateTTC(byte[] ttcArray)
EnumerateTTC(java.lang.String ttcFile)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
findNames()
(package private) java.lang.String[]
getNames()
-
Methods inherited from class com.lowagie.text.pdf.TrueTypeFont
addRangeUni, checkCff, compactRanges, fillTables, getAllNameEntries, getAllNames, getBaseFont, getCodePagesSupported, getFamilyFontName, getFontBaseType, getFontDescriptor, getFontDescriptor, getFullFont, getFullFontName, getFullFontStream, getGlyphWidth, getKerning, getMetricsTT, getNames, getPostscriptFontName, getRawCharBBox, getRawWidth, getTTCName, hasKernPairs, process, readCffFont, readCMaps, readFormat0, readFormat12, readFormat4, readFormat6, readGlyphWidths, readKerning, readStandardString, readUnicodeString, setKerning, setPostscriptFontName, writeFont
-
Methods inherited from class com.lowagie.text.pdf.BaseFont
addSubsetRange, charExists, convertToBytes, convertToBytes, correctArabicAdvance, createEncoding, createFont, createFont, createFont, createFont, createFont, createFont, createFont, createSubsetPrefix, enumerateTTCNames, enumerateTTCNames, getAllFontNames, getAllNameEntries, getAscent, getAscentPoint, getBaseName, getCharBBox, getCidCode, getCompressionLevel, getDescent, getDescentPoint, getDifferences, getDocumentFonts, getDocumentFonts, getEncoding, getFontType, getFullFontName, getResourceStream, getResourceStream, getSecureRandom, getUnicodeDifferences, getUnicodeDifferences, getUnicodeEquivalent, getWidth, getWidth, getWidthPoint, getWidthPoint, getWidthPointKerned, getWidths, isDirectTextToByte, isEmbedded, isFontSpecific, isForceWidthsOutput, isIncludeCidSet, isSubset, normalizeEncoding, setCharAdvance, setCompressionLevel, setDirectTextToByte, setForceWidthsOutput, setIncludeCidSet, setSecureRandom, setSubset
-
-
-
-
Field Detail
-
TRUE_TYPE_SFNT_VERSION
private static final int TRUE_TYPE_SFNT_VERSION
OpenType fonts that contain TrueType outlines should use the value of 0x00010000 for the sfntVersion. OpenType fonts containing CFF data (version 1 or 2) should use 0x4F54544F ('OTTO', when re-interpreted as a Tag) for sfntVersion.Note: The Apple specification for TrueType fonts allows for 'true' and 'typ1' for sfnt version. These version tags should not be used for fonts which contain OpenType tables. See more at: https://docs.microsoft.com/de-de/typography/opentype/spec/otff#organization-of-an-opentype-font
- See Also:
- Constant Field Values
-
CFF_DATA_SFNT_VERSION
private static final int CFF_DATA_SFNT_VERSION
- See Also:
- Constant Field Values
-
names
protected java.lang.String[] names
-
-
Constructor Detail
-
EnumerateTTC
EnumerateTTC(java.lang.String ttcFile) throws DocumentException, java.io.IOException
- Throws:
DocumentException
java.io.IOException
-
EnumerateTTC
EnumerateTTC(byte[] ttcArray) throws DocumentException, java.io.IOException
- Throws:
DocumentException
java.io.IOException
-
-
Method Detail
-
findNames
void findNames() throws DocumentException, java.io.IOException
- Throws:
DocumentException
java.io.IOException
-
getNames
java.lang.String[] getNames()
-
-