Package org.apache.fop.fonts.truetype
Class TTFFile
- java.lang.Object
-
- org.apache.fop.fonts.truetype.OpenFont
-
- org.apache.fop.fonts.truetype.TTFFile
-
- Direct Known Subclasses:
TTFSubSetFile
public class TTFFile extends OpenFont
Reads a TrueType file or a TrueType Collection. The TrueType spec can be found at the Microsoft. Typography site: http://www.microsoft.com/truetype/
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.fop.fonts.truetype.OpenFont
OpenFont.PostScriptVersion, OpenFont.UnicodeMapping
-
-
Field Summary
-
Fields inherited from class org.apache.fop.fonts.truetype.OpenFont
advancedTableReader, cid, dirTabs, embedFontName, ENC_BUF_SIZE, familyNames, fontFile, fullName, lastLoca, locaFormat, log, MAX_CHAR_CODE, mtxTab, nhmtx, notice, NTABS, numberOfGlyphs, postScriptName, subFamilyName, svgs, TRACE_ENABLED, unicodeMappings, useAdvanced, useKerning
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getLastGlyfLocation()
Gets the last location of the glyf tableprotected void
initializeFont(FontFileReader in)
private void
readGlyf()
Read the "glyf" table to find the bounding boxes.protected void
readIndexToLocation()
Read the "loca" table.protected void
readName()
Read the "name" table.protected void
updateBBoxAndOffset()
-
Methods inherited from class org.apache.fop.fonts.truetype.OpenFont
checkTTC, convertTTFUnit2PDFUnit, createCMaps, determineAscDesc, getAnsiKerning, getBBox, getBBoxRaw, getBoundingBoxes, getCapHeight, getCharSetName, getCharWidth, getCharWidthRaw, getCMaps, getCopyrightNotice, getDirectoryEntry, getEmbedFontName, getFamilyNames, getFirstChar, getFlags, getFontBBox, getFullName, getGDEF, getGlyphName, getGPOS, getGSUB, getItalicAngle, getKerning, getLastChar, getLowerCaseAscent, getLowerCaseDescent, getMtx, getNumGlyphs, getPadSize, getPostScriptName, getPostScriptVersion, getStemV, getStrikeoutPosition, getStrikeoutThickness, getSubFamilyName, getTTCnames, getUnderlinePosition, getUnderlineThickness, getWeightClass, getWidths, getXHeight, guessVerticalMetricsFromGlyphBBox, handleCharacterSpacing, hasAdvancedTable, initAnsiWidths, isCFF, isEmbeddable, main, printStuff, readCMAP, readDirTabs, readFont, readFont, readFont, readFontHeader, readHorizontalHeader, readHorizontalMetrics, readKerning, readOS2, readPCLT, readPostScript, seekTab, sortDirTabMap, stream
-
-
-
-
Method Detail
-
readName
protected void readName() throws java.io.IOException
Read the "name" table.
-
readGlyf
private void readGlyf() throws java.io.IOException
Read the "glyf" table to find the bounding boxes.- Throws:
java.io.IOException
- In case of a I/O problem
-
updateBBoxAndOffset
protected void updateBBoxAndOffset() throws java.io.IOException
- Specified by:
updateBBoxAndOffset
in classOpenFont
- Throws:
java.io.IOException
-
readIndexToLocation
protected final void readIndexToLocation() throws java.io.IOException
Read the "loca" table.- Throws:
java.io.IOException
- In case of a I/O problem
-
getLastGlyfLocation
public long getLastGlyfLocation()
Gets the last location of the glyf table- Returns:
- The last location as a long
-
initializeFont
protected void initializeFont(FontFileReader in) throws java.io.IOException
- Specified by:
initializeFont
in classOpenFont
- Throws:
java.io.IOException
-
-