public class OTFSubSetWriter extends OTFFile
OpenFont.PostScriptVersion
Modifier and Type | Field and Description |
---|---|
protected int |
currentPos |
protected java.io.ByteArrayOutputStream |
output |
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 |
---|
OTFSubSetWriter() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
concatArray(byte[] a,
byte[] b) |
byte[] |
getFontSubset()
Returns a subset of the fonts (readFont() MUST be called first in order to create the
subset).
|
protected void |
writeByte(int b)
Appends a byte to the output array,
updates currentPost but not realSize
|
protected void |
writeBytes(byte[] out) |
protected void |
writeCard16(int s)
Appends a USHORT to the output array,
updates currentPost but not realSize
|
protected void |
writeThreeByteNumber(int s) |
protected void |
writeULong(int s)
Appends a ULONG to the output array,
at the given position
|
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 int currentPos
protected java.io.ByteArrayOutputStream output
public OTFSubSetWriter() throws java.io.IOException
java.io.IOException
public static byte[] concatArray(byte[] a, byte[] b)
protected void writeByte(int b)
protected void writeCard16(int s)
protected void writeThreeByteNumber(int s)
protected void writeULong(int s)
protected void writeBytes(byte[] out)
public byte[] getFontSubset()
Copyright 1999-2021 The Apache Software Foundation. All Rights Reserved.