Package | org.purepdf.pdf.fonts |
Class | public class TrueTypeFontUnicode |
Inheritance | TrueTypeFontUnicode TrueTypeFont BaseFont it.sephiroth.utils.ObjectHash |
Method | Defined By | ||
---|---|---|---|
TrueTypeFontUnicode | |||
addSubsetTange(range:Vector.<int>):void | BaseFont | ||
charExists(c:int):Boolean [override] | TrueTypeFontUnicode | ||
convertToByte(char1:int):Bytes [override] | TrueTypeFontUnicode | ||
convertToBytes(char1:String):Bytes [override] | TrueTypeFontUnicode | ||
createFont(name:String, encoding:String, embedded:Boolean, cached:Boolean, ttfAfm:Vector.<int> = null, pfb:Vector.<int> = null, noThrow:Boolean = false, forceRead:Boolean = false):BaseFont [static]
Creates a new font. | BaseFont | ||
createSubsetPrefix():String [static] Creates a unique subset prefix to be added to the font name when the font is embedded and subset. | BaseFont | ||
getCharBBox(c:int):Vector.<int> | BaseFont | ||
getFamilyFontName():Vector.<Vector.<String>> [override] | TrueTypeFont | ||
getFontDescriptor(key:int, fontSize:Number):Number [override] Gets the font parameter identified by key. | TrueTypeFont | ||
BaseFont | |||
getKerning(char1:int, char2:int):int
Gets the kerning between two Unicode chars
| BaseFont | ||
getMetricsTT(c:int):Vector.<int> [override] | TrueTypeFontUnicode | ||
getPostscriptFontName():String | BaseFont | ||
getUnicodeDifferences(index:int):int | BaseFont | ||
getUnicodeEquivalent(c:int):int | BaseFont | ||
getWidth(code:Object):int
Gets the width of a char in normalized 1000 units
Possible input parameters are: String,int
| BaseFont | ||
getWidthPoint(code:Object, fontSize:Number):Number
Gets the width of a char in points. | BaseFont | ||
getWidthPointKerned(text:String, fontSize:Number):Number
Gets the width of a string in points taking kerning
into account
| BaseFont | ||
hasKernPairs():Boolean [override] | TrueTypeFont | ||
init($ttFile:String, $enc:String, $emb:Boolean, $ttfAfm:Vector.<int>, $justNames:Boolean, $forceRead:Boolean):void [override] | TrueTypeFontUnicode | ||
setKerning(char1:int, char2:int, kern:int):Boolean [override] | TrueTypeFont | ||
[override] | TrueTypeFontUnicode |
Method | Defined By | ||
---|---|---|---|
_getWidthI(code:int):int [override] | TrueTypeFontUnicode | ||
_getWidthS(text:String):int [override] | TrueTypeFontUnicode | ||
addRangeUni(longTag:HashMap, includeMetrics:Boolean, subsetp:Boolean):void | TrueTypeFont | ||
compactRanges(ranges:Vector.<Vector.<int>>):Vector.<int> [static] | TrueTypeFont | ||
createEncoding():void | BaseFont | ||
getBaseName(name:String):String [static]
Gets the fontname without the modifiers Bold, Italic or BoldItalic. | BaseFont | ||
getFontBaseType(fontDescriptor:PdfIndirectReference, subsetPrefix:String, firstChar:int, lastChar:int, shortTag:Vector.<int>):PdfDictionary
Generates the font dictionary for this font. | TrueTypeFont | ||
getFontDescriptorRef(fontStream:PdfIndirectReference, subsetPrefix:String, cidset:PdfIndirectReference):PdfDictionary
Generates the font descriptor for this font. | TrueTypeFont | ||
TrueTypeFont | |||
getGlyphWidth(glyph:int):int
Gets width of a glyph
| TrueTypeFont | ||
getRawCharBBox(c:int, name:String):Vector.<int> [override] | TrueTypeFont | ||
getRawWidth(c:int, name:String):int [override] | TrueTypeFont | ||
getTTCName(name:String):String [static]
Gets the name from a composed TTC file name. | TrueTypeFont | ||
normalizeEncoding(enc:String):String [static]
Normalize the encoding name
| BaseFont | ||
process(preload:Boolean):void
Read the font data
| TrueTypeFont | ||
TrueTypeFont | |||
readGlyphWidths():void
Reads the glyphs widths. | TrueTypeFont | ||
readStandardString(length:int):String
Reads a String from the font file as bytes using the Cp1252 encoding
| TrueTypeFont | ||
readUnicodeString(length:int):String | TrueTypeFont |
TrueTypeFontUnicode | () | Constructor |
public function TrueTypeFontUnicode()
_getWidthI | () | method |
override protected function _getWidthI(code:int):int
Parameters
code:int |
int |
_getWidthS | () | method |
override protected function _getWidthS(text:String):int
Parameters
text:String |
int |
charExists | () | method |
override public function charExists(c:int):Boolean
Parameters
c:int |
Boolean |
convertToByte | () | method |
convertToBytes | () | method |
getMetricsTT | () | method |
override public function getMetricsTT(c:int):Vector.<int>
Parameters
c:int |
Vector.<int> |
init | () | method |
override public function init($ttFile:String, $enc:String, $emb:Boolean, $ttfAfm:Vector.<int>, $justNames:Boolean, $forceRead:Boolean):void
Parameters
$ttFile:String | |
$enc:String | |
$emb:Boolean | |
$ttfAfm:Vector.<int> | |
$justNames:Boolean | |
$forceRead:Boolean |
writeFont | () | method |
override public function writeFont(writer:PdfWriter, ref:PdfIndirectReference, params:Vector.<Object>):void
Parameters
writer:PdfWriter | |
ref:PdfIndirectReference | |
params:Vector.<Object> |