Package | org.purepdf.pdf.fonts |
Class | public class TrueTypeFontSubSet |
Inheritance | TrueTypeFontSubSet Object |
Property | Defined By | ||
---|---|---|---|
directoryOffset : int | TrueTypeFontSubSet | ||
fileName : String | TrueTypeFontSubSet | ||
fontPtr : int | TrueTypeFontSubSet | ||
glyfTableRealSize : int | TrueTypeFontSubSet | ||
glyphsInList : Vector.<int> | TrueTypeFontSubSet | ||
glyphsUsed : HashMap | TrueTypeFontSubSet | ||
includeCmap : Boolean | TrueTypeFontSubSet | ||
includeExtras : Boolean | TrueTypeFontSubSet | ||
locaShortTable : Boolean | TrueTypeFontSubSet | ||
locaTable : Vector.<int> | TrueTypeFontSubSet | ||
locaTableRealSize : int | TrueTypeFontSubSet | ||
newGlyfTable : Bytes | TrueTypeFontSubSet | ||
newLocaTable : Vector.<int> | TrueTypeFontSubSet | ||
newLocaTableOut : Bytes | TrueTypeFontSubSet | ||
outFont : Bytes | TrueTypeFontSubSet | ||
rf : ByteArray | TrueTypeFontSubSet | ||
tableDirectory : HashMap | TrueTypeFontSubSet | ||
tableGlyphOffset : int | TrueTypeFontSubSet |
Method | Defined By | ||
---|---|---|---|
TrueTypeFontSubSet($fileName:String, $rf:ByteArray, $glyphsUsed:HashMap, $directoryOffset:int, $includeCmap:Boolean, $includeExtras:Boolean)
Creates a new TrueTypeFontSubSet
| TrueTypeFontSubSet | ||
Does the actual work of subsetting the font. | TrueTypeFontSubSet |
Method | Defined By | ||
---|---|---|---|
assembleFont():void | TrueTypeFontSubSet | ||
calculateChecksum(b:Bytes):int | TrueTypeFontSubSet | ||
checkGlyphComposite(glyph:int):void | TrueTypeFontSubSet | ||
createNewGlyphTables():void | TrueTypeFontSubSet | ||
createTableDirectory():void | TrueTypeFontSubSet | ||
flatGlyphs():void | TrueTypeFontSubSet | ||
locaTobytes():void | TrueTypeFontSubSet | ||
readLoca():void | TrueTypeFontSubSet | ||
readStandardString(length:int):String | TrueTypeFontSubSet | ||
writeFontInt(n:int):void | TrueTypeFontSubSet | ||
writeFontShort(n:int):void | TrueTypeFontSubSet | ||
writeFontString(s:String):void | TrueTypeFontSubSet |
Constant | Defined By | ||
---|---|---|---|
ARG_1_AND_2_ARE_WORDS : int = 1 [static] | TrueTypeFontSubSet | ||
entrySelectors : Vector.<int> [static] | TrueTypeFontSubSet | ||
HEAD_LOCA_FORMAT_OFFSET : int = 51 [static] | TrueTypeFontSubSet | ||
MORE_COMPONENTS : int = 32 [static] | TrueTypeFontSubSet | ||
TABLE_CHECKSUM : int = 0 [static] | TrueTypeFontSubSet | ||
TABLE_LENGTH : int = 2 [static] | TrueTypeFontSubSet | ||
tableNamesCmap : Vector.<String> [static] | TrueTypeFontSubSet | ||
tableNamesExtra : Vector.<String> [static] | TrueTypeFontSubSet | ||
tableNamesSimple : Vector.<String> [static] | TrueTypeFontSubSet | ||
TABLE_OFFSET : int = 1 [static] | TrueTypeFontSubSet | ||
WE_HAVE_AN_X_AND_Y_SCALE : int = 64 [static] | TrueTypeFontSubSet | ||
WE_HAVE_A_SCALE : int = 8 [static] | TrueTypeFontSubSet | ||
WE_HAVE_A_TWO_BY_TWO : int = 128 [static] | TrueTypeFontSubSet |
directoryOffset | property |
protected var directoryOffset:int
fileName | property |
protected var fileName:String
fontPtr | property |
protected var fontPtr:int
glyfTableRealSize | property |
protected var glyfTableRealSize:int
glyphsInList | property |
protected var glyphsInList:Vector.<int>
glyphsUsed | property |
protected var glyphsUsed:HashMap
includeCmap | property |
protected var includeCmap:Boolean
includeExtras | property |
protected var includeExtras:Boolean
locaShortTable | property |
protected var locaShortTable:Boolean
locaTable | property |
protected var locaTable:Vector.<int>
locaTableRealSize | property |
protected var locaTableRealSize:int
newGlyfTable | property |
protected var newGlyfTable:Bytes
newLocaTable | property |
protected var newLocaTable:Vector.<int>
newLocaTableOut | property |
protected var newLocaTableOut:Bytes
outFont | property |
protected var outFont:Bytes
rf | property |
protected var rf:ByteArray
tableDirectory | property |
protected var tableDirectory:HashMap
tableGlyphOffset | property |
protected var tableGlyphOffset:int
TrueTypeFontSubSet | () | Constructor |
public function TrueTypeFontSubSet($fileName:String, $rf:ByteArray, $glyphsUsed:HashMap, $directoryOffset:int, $includeCmap:Boolean, $includeExtras:Boolean)
Creates a new TrueTypeFontSubSet
Parameters$fileName:String | |
$rf:ByteArray | |
$glyphsUsed:HashMap | |
$directoryOffset:int | |
$includeCmap:Boolean | |
$includeExtras:Boolean |
assembleFont | () | method |
protected function assembleFont():void
EOFError
|
calculateChecksum | () | method |
checkGlyphComposite | () | method |
protected function checkGlyphComposite(glyph:int):void
Parameters
glyph:int |
EOFError
|
createNewGlyphTables | () | method |
protected function createNewGlyphTables():void
EOFError
|
createTableDirectory | () | method |
protected function createTableDirectory():void
DocumentError
| |
EOFError
|
flatGlyphs | () | method |
protected function flatGlyphs():void
DocumentError
| |
EOFError
|
locaTobytes | () | method |
protected function locaTobytes():void
process | () | method |
public function process():Bytes
Does the actual work of subsetting the font.
ReturnsBytes — the subset font
|
IOException — on error
| |
DocumentException — on error
|
readLoca | () | method |
protected function readLoca():void
DocumentError
| |
EOFError
|
readStandardString | () | method |
protected function readStandardString(length:int):String
Parameters
length:int |
String |
writeFontInt | () | method |
protected function writeFontInt(n:int):void
Parameters
n:int |
writeFontShort | () | method |
protected function writeFontShort(n:int):void
Parameters
n:int |
writeFontString | () | method |
protected function writeFontString(s:String):void
Parameters
s:String |
ARG_1_AND_2_ARE_WORDS | Constant |
public static const ARG_1_AND_2_ARE_WORDS:int = 1
entrySelectors | Constant |
public static const entrySelectors:Vector.<int>
HEAD_LOCA_FORMAT_OFFSET | Constant |
public static const HEAD_LOCA_FORMAT_OFFSET:int = 51
MORE_COMPONENTS | Constant |
public static const MORE_COMPONENTS:int = 32
TABLE_CHECKSUM | Constant |
public static const TABLE_CHECKSUM:int = 0
TABLE_LENGTH | Constant |
public static const TABLE_LENGTH:int = 2
TABLE_OFFSET | Constant |
public static const TABLE_OFFSET:int = 1
tableNamesCmap | Constant |
public static const tableNamesCmap:Vector.<String>
tableNamesExtra | Constant |
public static const tableNamesExtra:Vector.<String>
tableNamesSimple | Constant |
public static const tableNamesSimple:Vector.<String>
WE_HAVE_A_SCALE | Constant |
public static const WE_HAVE_A_SCALE:int = 8
WE_HAVE_A_TWO_BY_TWO | Constant |
public static const WE_HAVE_A_TWO_BY_TWO:int = 128
WE_HAVE_AN_X_AND_Y_SCALE | Constant |
public static const WE_HAVE_AN_X_AND_Y_SCALE:int = 64