|
fop-pdf-images 2.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.fop.fonts.truetype.OpenFont
org.apache.fop.fonts.truetype.OTFFile
org.apache.fop.fonts.truetype.OTFSubSetWriter
org.apache.fop.render.pdf.pdfbox.OTFSubSetFile
org.apache.fop.render.pdf.pdfbox.MergeCFFFonts
public class MergeCFFFonts
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.fop.fonts.truetype.OpenFont |
|---|
org.apache.fop.fonts.truetype.OpenFont.PostScriptVersion |
| Field Summary | |
|---|---|
protected java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> |
subsetGlyphsList
|
| Fields inherited from class org.apache.fop.render.pdf.pdfbox.OTFSubSetFile |
|---|
cffReader, embeddedName, gidToSID, globalUniques, localUniques, NUM_STANDARD_STRINGS, stringIndexData, subsetCharStringsIndex, subsetLocalIndexSubr |
| Fields inherited from class org.apache.fop.fonts.truetype.OTFSubSetWriter |
|---|
currentPos, output, realSize |
| Fields inherited from class org.apache.fop.fonts.truetype.OTFFile |
|---|
fileFont |
| Fields inherited from class org.apache.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 | |
|---|---|
MergeCFFFonts()
|
|
| Method Summary | |
|---|---|
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,
int dataTopDictOffset,
int charsetOffset,
int charStringOffset,
int encodingOffset)
|
protected void |
writeCharsetTable(boolean cidFont,
boolean afterstringindex)
|
protected void |
writeCIDCount(org.apache.fop.fonts.cff.CFFDataReader.DICTEntry dictEntry)
|
protected void |
writeEncoding()
|
protected void |
writeStringIndex()
|
| Methods inherited from class org.apache.fop.render.pdf.pdfbox.OTFSubSetFile |
|---|
createNewRef, updateCIDOffsets, updateOffset, updateOffsets, writeIndex, writePrivateDict, writeTopDICT |
| Methods inherited from class org.apache.fop.fonts.truetype.OTFSubSetWriter |
|---|
concatArray, getFontSubset, writeByte, writeBytes, writeBytes, writeCard16, writeThreeByteNumber, writeULong |
| Methods inherited from class org.apache.fop.fonts.truetype.OTFFile |
|---|
getCFFData, initializeFont, readName, updateBBoxAndOffset |
| Methods 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, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<java.util.Map<java.lang.Integer,java.lang.Integer>> subsetGlyphsList
| Constructor Detail |
|---|
public MergeCFFFonts()
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
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 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.IOException
public byte[] getMergedFontSubset()
throws java.io.IOException
getMergedFontSubset in interface MergeFontsjava.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,
int dataTopDictOffset,
int charsetOffset,
int charStringOffset,
int encodingOffset)
updateFixedOffsets in class OTFSubSetFile
protected void writeCIDCount(org.apache.fop.fonts.cff.CFFDataReader.DICTEntry dictEntry)
throws java.io.IOException
writeCIDCount in class OTFSubSetFilejava.io.IOException
|
fop-pdf-images 2.2 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||