public class MergeCFFFonts extends OTFSubSetFile implements MergeFonts
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> |
subsetGlyphsList |
cffReader, embeddedName, gidToSID, globalUniques, localUniques, NUM_STANDARD_STRINGS, stringIndexData, subsetCharStringsIndex, subsetLocalIndexSubradvancedTableReader, cid, dirTabs, embedFontName, familyNames, fontFile, fullName, lastLoca, locaFormat, log, mtxTab, nhmtx, notice, numberOfGlyphs, postScriptName, subFamilyName, svgs, TRACE_ENABLED, unicodeMappings, useAdvanced, useKerning| Constructor and Description |
|---|
MergeCFFFonts() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCFF() |
protected void |
createCharStringData() |
byte[] |
getMergedFontSubset() |
static java.util.List<java.lang.Integer> |
getSids(org.apache.fontbox.cff.CFFCharset cSet) |
static java.util.Map<java.lang.String,byte[]> |
getStrings(org.apache.fontbox.cff.CFFFont ff) |
void |
readFont(java.io.InputStream is,
java.lang.String name,
FontContainer fontContainer,
java.util.Map<java.lang.Integer,java.lang.Integer> subsetGlyphs,
boolean cid) |
protected void |
updateFixedOffsets(java.util.Map<java.lang.String,org.apache.fop.fonts.cff.CFFDataReader.DICTEntry> topDICT,
org.apache.fop.render.pdf.pdfbox.OTFSubSetFile.Offsets offsets) |
protected void |
writeCharsetTable(boolean cidFont,
boolean afterstringindex) |
protected void |
writeEncoding() |
protected void |
writeStringIndex() |
createNewRef, updateCIDOffsets, updateOffset, updateOffset, updateOffsets, writeCIDCount, writeIndex, writeIndex, writePrivateDict, writeTopDICTconcatArray, getFontSubset, writeByte, writeBytes, writeCard16, writeThreeByteNumber, writeULonggetCFFData, initializeFont, isType1, readName, updateBBoxAndOffsetcheckTTC, 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, streamprotected java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> subsetGlyphsList
public MergeCFFFonts()
throws java.io.IOException
java.io.IOExceptionpublic void readFont(java.io.InputStream is,
java.lang.String name,
FontContainer fontContainer,
java.util.Map<java.lang.Integer,java.lang.Integer> subsetGlyphs,
boolean cid)
throws java.io.IOException
readFont in interface MergeFontsjava.io.IOExceptionpublic static java.util.List<java.lang.Integer> getSids(org.apache.fontbox.cff.CFFCharset cSet)
public static java.util.Map<java.lang.String,byte[]> getStrings(org.apache.fontbox.cff.CFFFont ff)
throws java.io.IOException
java.io.IOExceptionpublic byte[] getMergedFontSubset()
throws java.io.IOException
getMergedFontSubset in interface MergeFontsjava.io.IOExceptionprotected void createCFF()
throws java.io.IOException
java.io.IOExceptionprotected void writeEncoding()
throws java.io.IOException
java.io.IOExceptionprotected void writeStringIndex()
throws java.io.IOException
java.io.IOExceptionprotected void createCharStringData()
throws java.io.IOException
java.io.IOExceptionprotected void writeCharsetTable(boolean cidFont,
boolean afterstringindex)
throws java.io.IOException
java.io.IOExceptionprotected void updateFixedOffsets(java.util.Map<java.lang.String,org.apache.fop.fonts.cff.CFFDataReader.DICTEntry> topDICT,
org.apache.fop.render.pdf.pdfbox.OTFSubSetFile.Offsets offsets)
throws java.io.IOException
updateFixedOffsets in class OTFSubSetFilejava.io.IOExceptionCopyright 2007-2022 The Apache Software Foundation. All Rights Reserved.