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, subsetLocalIndexSubr
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 |
---|
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, writeTopDICT
concatArray, getFontSubset, writeByte, writeBytes, writeCard16, writeThreeByteNumber, writeULong
getCFFData, initializeFont, isType1, readName, 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
protected java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> subsetGlyphsList
public MergeCFFFonts() throws java.io.IOException
java.io.IOException
public 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 MergeFonts
java.io.IOException
public 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.IOException
public byte[] getMergedFontSubset() throws java.io.IOException
getMergedFontSubset
in interface MergeFonts
java.io.IOException
protected void createCFF() throws java.io.IOException
java.io.IOException
protected void writeEncoding() throws java.io.IOException
java.io.IOException
protected void writeStringIndex() throws java.io.IOException
java.io.IOException
protected void createCharStringData() throws java.io.IOException
java.io.IOException
protected void writeCharsetTable(boolean cidFont, boolean afterstringindex) throws java.io.IOException
java.io.IOException
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) throws java.io.IOException
updateFixedOffsets
in class OTFSubSetFile
java.io.IOException
Copyright 2007-2025 The Apache Software Foundation. All Rights Reserved.