Class OTFFile
java.lang.Object
org.docx4j.fonts.fop.fonts.truetype.OpenFont
org.docx4j.fonts.fop.fonts.truetype.OTFFile
- Direct Known Subclasses:
OTFSubSetWriter
public class OTFFile extends OpenFont
-
Nested Class Summary
Nested classes/interfaces inherited from class org.docx4j.fonts.fop.fonts.truetype.OpenFont
OpenFont.PostScriptVersion -
Field Summary
Fields Modifier and Type Field Description protected org.apache.fontbox.cff.CFFFontfileFontFields inherited from class org.docx4j.fonts.fop.fonts.truetype.OpenFont
advancedTableReader, cid, dirTabs, embedFontName, familyNames, fontFile, fullName, lastLoca, locaFormat, log, mtxTab, nhmtx, notice, numberOfGlyphs, postScriptName, subFamilyName, TRACE_ENABLED, unicodeMappings, useAdvanced, useKerning -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static byte[]getCFFData(FontFileReader fontFile)Reads the CFFData from a given font fileprotected voidinitializeFont(FontFileReader in)booleanisType1()protected voidreadName()protected voidupdateBBoxAndOffset()Methods inherited from class org.docx4j.fonts.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, getGPOS, getGSUB, getItalicAngle, getKerning, getLastChar, getLowerCaseAscent, getLowerCaseDescent, getMtx, getNumGlyphs, getPadSize, getPanose, 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, streamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
fileFont
protected org.apache.fontbox.cff.CFFFont fileFont
-
-
Constructor Details
-
OTFFile
public OTFFile() throws java.io.IOException- Throws:
java.io.IOException
-
OTFFile
public OTFFile(boolean useKerning, boolean useAdvanced) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
updateBBoxAndOffset
protected void updateBBoxAndOffset() throws java.io.IOException- Specified by:
updateBBoxAndOffsetin classOpenFont- Throws:
java.io.IOException
-
initializeFont
- Specified by:
initializeFontin classOpenFont- Throws:
java.io.IOException
-
readName
protected void readName() throws java.io.IOException -
getCFFData
Reads the CFFData from a given font file- Parameters:
fontFile- The font file being read- Returns:
- The byte data found in the CFF table
- Throws:
java.io.IOException
-
isType1
public boolean isType1()
-