public class TTFFile extends OpenFont
OpenFont.PostScriptVersion
advancedTableReader, cid, dirTabs, embedFontName, familyNames, fontFile, fullName, lastLoca, locaFormat, log, mtxTab, nhmtx, notice, numberOfGlyphs, postScriptName, subFamilyName, svgs, TRACE_ENABLED, unicodeMappings, useAdvanced, useKerning
Constructor and Description |
---|
TTFFile() |
TTFFile(boolean useKerning,
boolean useAdvanced)
Constructor
|
Modifier and Type | Method and Description |
---|---|
long |
getLastGlyfLocation()
Gets the last location of the glyf table
|
protected void |
initializeFont(FontFileReader in) |
protected void |
readIndexToLocation()
Read the "loca" table.
|
protected void |
readName()
Read the "name" table.
|
protected void |
updateBBoxAndOffset() |
checkTTC, convertTTFUnit2PDFUnit, createCMaps, determineAscDesc, getAnsiKerning, getBBox, getBBoxRaw, getBoundingBoxes, getCapHeight, getCharSetName, getCharWidth, getCharWidthRaw, getCMaps, getCopyrightNotice, getDirectoryEntry, getEmbedFontName, getFamilyNames, getFirstChar, getFlags, getFontBBox, getFullName, getGDEF, getGPOS, getGSUB, getItalicAngle, getKerning, getLastChar, getLowerCaseAscent, getLowerCaseDescent, getMtx, getNumGlyphs, getPadSize, getPostScriptName, 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, stream
public TTFFile()
public TTFFile(boolean useKerning, boolean useAdvanced)
useKerning
- true if kerning data should be loadeduseAdvanced
- true if advanced typographic tables should be loadedprotected void readName() throws IOException
readName
in class OpenFont
IOException
- In case of a I/O problemprotected void updateBBoxAndOffset() throws IOException
updateBBoxAndOffset
in class OpenFont
IOException
protected final void readIndexToLocation() throws IOException
IOException
- In case of a I/O problempublic long getLastGlyfLocation()
protected void initializeFont(FontFileReader in) throws IOException
initializeFont
in class OpenFont
IOException
Copyright © 2025 Apache Software Foundation. All rights reserved.