Package org.apache.fop.fonts.truetype
Class OTFFile
java.lang.Object
org.apache.fop.fonts.truetype.OpenFont
org.apache.fop.fonts.truetype.OTFFile
- Direct Known Subclasses:
OTFSubSetWriter
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.fop.fonts.truetype.OpenFont
OpenFont.PostScriptVersion, OpenFont.UnicodeMapping -
Field Summary
FieldsFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidstatic byte[]getCFFData(FontFileReader fontFile) Reads the CFFData from a given font fileprotected voidbooleanisType1()private static longreadLong(org.apache.fontbox.cff.CFFDataInput input) protected voidreadName()protected voidMethods 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
-
Field Details
-
fileFont
protected org.apache.fontbox.cff.CFFFont fileFont
-
-
Constructor Details
-
OTFFile
- Throws:
IOException
-
OTFFile
- Throws:
IOException
-
-
Method Details
-
checkForFontbox
- Throws:
IOException
-
updateBBoxAndOffset
- Specified by:
updateBBoxAndOffsetin classOpenFont- Throws:
IOException
-
initializeFont
- Specified by:
initializeFontin classOpenFont- Throws:
IOException
-
readName
- Specified by:
readNamein classOpenFont- Throws:
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:
IOException
-
readLong
- Throws:
IOException
-
isType1
public boolean isType1()
-