Packageorg.purepdf.pdf.fonts
Classpublic class TrueTypeFontUnicode
InheritanceTrueTypeFontUnicode Inheritance TrueTypeFont Inheritance BaseFont Inheritance it.sephiroth.utils.ObjectHash



Public Properties
 PropertyDefined By
 InheritedbuiltinFonts14 : HashMap
[static] [read-only]
BaseFont
 InheritedcompressionLevel : int
BaseFont
 Inheritedencoding : String
[read-only]
BaseFont
 InheritedfontSpecific : Boolean
BaseFont
 InheritedfontType : int
[read-only]
BaseFont
 Inheritedsubset : Boolean
BaseFont
Protected Properties
 PropertyDefined By
 InheritedallNameEntries : Vector.<Vector.<String>>
TrueTypeFont
 Inheritedbboxes : Vector.<Vector.<int>>
TrueTypeFont
 Inherited_builtinFonts14 : HashMap
[static]
BaseFont
 Inheritedcff : Boolean = false
TrueTypeFont
 InheritedcffLength : int = 0
TrueTypeFont
 InheritedcffOffset : int = 0
TrueTypeFont
 InheritedcharBBoxes : Vector.<Vector.<int>>
BaseFont
 Inheritedcmap10 : HashMap
TrueTypeFont
 Inheritedcmap31 : HashMap
TrueTypeFont
 InheritedcmapExt : HashMap
TrueTypeFont
 Inherited_compressionLevel : int
BaseFont
 Inheriteddifferences : Vector.<String>
BaseFont
 InheriteddirectoryOffset : int = 0
TrueTypeFont
 InheriteddirectTextToByte : Boolean = false
BaseFont
 Inheritedembedded : Boolean
BaseFont
 Inherited_encoding : String
BaseFont
 InheritedfamilyName : Vector.<Vector.<String>>
TrueTypeFont
 InheritedfastWinansi : Boolean = false
BaseFont
 InheritedfileName : String
TrueTypeFont
 InheritedfontCache : HashMap
[static]
BaseFont
 InheritedfontName : String
TrueTypeFont
 Inherited_fontSpecific : Boolean = true
BaseFont
 Inherited_fontType : int
BaseFont
 InheritedforceWidthsOutput : Boolean = false
BaseFont
 InheritedfullName : Vector.<Vector.<String>>
TrueTypeFont
 InheritedGlyphWidths : Vector.<int>
TrueTypeFont
 Inheritedhead : FontHeader
TrueTypeFont
 Inheritedhhea : HorizontalHeader
TrueTypeFont
 InheritedisFixedPitch : Boolean = false
TrueTypeFont
 InheriteditalicAngle : Number = 0
TrueTypeFont
 InheritedjustNames : Boolean = false
TrueTypeFont
 Inheritedkerning : Dictionary
TrueTypeFont
 Inheritedkerning_size : int = 0
TrueTypeFont
 Inheritedos_2 : WindowsMetrics
TrueTypeFont
 Inheritedrf : ByteArray
TrueTypeFont
 InheritedspecialMap : Object
BaseFont
 Inheritedstyle : String
TrueTypeFont
 Inherited_subset : Boolean = true
BaseFont
 InheritedsubsetRanges : Vector.<Vector.<int>>
BaseFont
 Inheritedtables : HashMap
TrueTypeFont
 InheritedttcIndex : String
TrueTypeFont
 InheritedunderlinePosition : int = 0
TrueTypeFont
 InheritedunderlineThickness : int = 0
TrueTypeFont
 InheritedunicodeDifferences : Vector.<int>
BaseFont
 Inheritedwidths : Vector.<int>
BaseFont
Public Methods
 MethodDefined By
  
TrueTypeFontUnicode
 Inherited
addSubsetTange(range:Vector.<int>):void
BaseFont
  
charExists(c:int):Boolean
[override]
TrueTypeFontUnicode
  
convertToByte(char1:int):Bytes
[override]
TrueTypeFontUnicode
  
convertToBytes(char1:String):Bytes
[override]
TrueTypeFontUnicode
 Inherited
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
 Inherited
[static] Creates a unique subset prefix to be added to the font name when the font is embedded and subset.
BaseFont
 Inherited
getCharBBox(c:int):Vector.<int>
BaseFont
 Inherited
getFamilyFontName():Vector.<Vector.<String>>
[override]
TrueTypeFont
 Inherited
getFontDescriptor(key:int, fontSize:Number):Number
[override] Gets the font parameter identified by key.
TrueTypeFont
 Inherited
BaseFont
 Inherited
getKerning(char1:int, char2:int):int
Gets the kerning between two Unicode chars
BaseFont
  
getMetricsTT(c:int):Vector.<int>
[override]
TrueTypeFontUnicode
 Inherited
BaseFont
 Inherited
getUnicodeDifferences(index:int):int
BaseFont
 Inherited
BaseFont
 Inherited
getWidth(code:Object):int
Gets the width of a char in normalized 1000 units Possible input parameters are: String,int
BaseFont
 Inherited
getWidthPoint(code:Object, fontSize:Number):Number
Gets the width of a char in points.
BaseFont
 Inherited
getWidthPointKerned(text:String, fontSize:Number):Number
Gets the width of a string in points taking kerning into account
BaseFont
 Inherited
hasKernPairs():Boolean
[override]
TrueTypeFont
  
init($ttFile:String, $enc:String, $emb:Boolean, $ttfAfm:Vector.<int>, $justNames:Boolean, $forceRead:Boolean):void
[override]
TrueTypeFontUnicode
 Inherited
setKerning(char1:int, char2:int, kern:int):Boolean
[override]
TrueTypeFont
  
writeFont(writer:PdfWriter, ref:PdfIndirectReference, params:Vector.<Object>):void
[override]
TrueTypeFontUnicode
Protected Methods
 MethodDefined By
  
_getWidthI(code:int):int
[override]
TrueTypeFontUnicode
  
_getWidthS(text:String):int
[override]
TrueTypeFontUnicode
 Inherited
addRangeUni(longTag:HashMap, includeMetrics:Boolean, subsetp:Boolean):void
TrueTypeFont
 Inherited
compactRanges(ranges:Vector.<Vector.<int>>):Vector.<int>
[static]
TrueTypeFont
 Inherited
BaseFont
 Inherited
getBaseName(name:String):String
[static] Gets the fontname without the modifiers Bold, Italic or BoldItalic.
BaseFont
 Inherited
getFontBaseType(fontDescriptor:PdfIndirectReference, subsetPrefix:String, firstChar:int, lastChar:int, shortTag:Vector.<int>):PdfDictionary
Generates the font dictionary for this font.
TrueTypeFont
 Inherited
Generates the font descriptor for this font.
TrueTypeFont
 Inherited
TrueTypeFont
 Inherited
getGlyphWidth(glyph:int):int
Gets width of a glyph
TrueTypeFont
 Inherited
getRawCharBBox(c:int, name:String):Vector.<int>
[override]
TrueTypeFont
 Inherited
getRawWidth(c:int, name:String):int
[override]
TrueTypeFont
 Inherited
getTTCName(name:String):String
[static] Gets the name from a composed TTC file name.
TrueTypeFont
 Inherited
normalizeEncoding(enc:String):String
[static] Normalize the encoding name
BaseFont
 Inherited
process(preload:Boolean):void
Read the font data
TrueTypeFont
 Inherited
TrueTypeFont
 Inherited
Reads the glyphs widths.
TrueTypeFont
 Inherited
readStandardString(length:int):String
Reads a String from the font file as bytes using the Cp1252 encoding
TrueTypeFont
 Inherited
readUnicodeString(length:int):String
TrueTypeFont
Public Constants
 ConstantDefined By
 InheritedAdobeCNS1_UCS2 : String = Adobe-CNS1-UCS2
[static]
BaseFont
 InheritedAdobeGB1_UCS2 : String = Adobe-GB1-UCS2
[static]
BaseFont
 InheritedAdobeJapan1_UCS2 : String = Adobe-Japan1-UCS2
[static]
BaseFont
 InheritedAdobeKorea1_UCS2 : String = Adobe-Korea1-UCS2
[static]
BaseFont
 InheritedASCENT : int = 1
[static]
BaseFont
 InheritedAWT_ASCENT : int = 9
[static]
BaseFont
 InheritedAWT_DESCENT : int = 10
[static]
BaseFont
 InheritedAWT_LEADING : int = 11
[static]
BaseFont
 InheritedAWT_MAXADVANCE : int = 12
[static]
BaseFont
 InheritedBBOXLLX : int = 5
[static]
BaseFont
 InheritedBBOXLLY : int = 6
[static]
BaseFont
 InheritedBBOXURX : int = 7
[static]
BaseFont
 InheritedBBOXURY : int = 8
[static]
BaseFont
 InheritedCACHED : Boolean = true
[static]
BaseFont
 InheritedCAPHEIGHT : int = 2
[static]
BaseFont
 InheritedCHAR_RANGE_ARABIC : Vector.<int>
[static]
BaseFont
 InheritedCHAR_RANGE_CYRILLIC : Vector.<int>
[static]
BaseFont
 InheritedCHAR_RANGE_HEBREW : Vector.<int>
[static]
BaseFont
 InheritedCHAR_RANGE_LATIN : Vector.<int>
[static]
BaseFont
 InheritedCID_NEWLINE : String = U7fff
[static]
BaseFont
 InheritedCOURIER : String = Courier.afm
[static]
BaseFont
 InheritedCOURIER_BOLD : String = Courier-Bold.afm
[static]
BaseFont
 InheritedCOURIER_BOLDOBLIQUE : String = Courier-BoldOblique.afm
[static]
BaseFont
 InheritedCOURIER_OBLIQUE : String = Courier-Oblique.afm
[static]
BaseFont
 InheritedCP1250 : String = Cp1250
[static]
BaseFont
 InheritedCP1252 : String = Cp1252
[static]
BaseFont
 InheritedCP1257 : String = Cp1257
[static]
BaseFont
 InheritedDESCENT : int = 3
[static]
BaseFont
 InheritedEMBEDDED : Boolean = true
[static]
BaseFont
 InheritedFONT_TYPE_CJK : int = 2
[static]
BaseFont
 InheritedFONT_TYPE_DOCUMENT : int = 4
[static]
BaseFont
 InheritedFONT_TYPE_T1 : int = 0
[static]
BaseFont
 InheritedFONT_TYPE_T3 : int = 5
[static]
BaseFont
 InheritedFONT_TYPE_TT : int = 1
[static]
BaseFont
 InheritedFONT_TYPE_TTUNI : int = 3
[static]
BaseFont
 InheritedHELVETICA : String = Helvetica.afm
[static]
BaseFont
 InheritedHELVETICA_BOLD : String = Helvetica-Bold.afm
[static]
BaseFont
 InheritedHELVETICA_BOLDOBLIQUE : String = Helvetica-BoldOblique.afm
[static]
BaseFont
 InheritedHELVETICA_OBLIQUE : String = Helvetica-Oblique.afm
[static]
BaseFont
 InheritedIDENTITY_H : String = Identity-H
[static]
BaseFont
 InheritedIDENTITY_V : String = Identity-V
[static]
BaseFont
 InheritedITALICANGLE : int = 4
[static]
BaseFont
 InheritedMACROMAN : String = MacRoman
[static]
BaseFont
 InheritedNOT_CACHED : Boolean = false
[static]
BaseFont
 Inheritednotdef : String = .notdef
[static]
BaseFont
 InheritedNOT_EMBEDDED : Boolean = false
[static]
BaseFont
 InheritedRESOURCE_PATH : String = fonts/
[static]
BaseFont
 InheritedSTRIKETHROUGH_POSITION : int = 15
[static]
BaseFont
 InheritedSTRIKETHROUGH_THICKNESS : int = 16
[static]
BaseFont
 InheritedSUBSCRIPT_OFFSET : int = 18
[static]
BaseFont
 InheritedSUBSCRIPT_SIZE : int = 17
[static]
BaseFont
 InheritedSUPERSCRIPT_OFFSET : int = 20
[static]
BaseFont
 InheritedSUPERSCRIPT_SIZE : int = 19
[static]
BaseFont
 InheritedSYMBOL : String = Symbol.afm
[static]
BaseFont
 InheritedTIMES_BOLD : String = Times-Bold.afm
[static]
BaseFont
 InheritedTIMES_BOLDITALIC : String = Times-BoldItalic.afm
[static]
BaseFont
 InheritedTIMES_ITALIC : String = Times-Italic.afm
[static]
BaseFont
 InheritedTIMES_ROMAN : String = Times-Roman.afm
[static]
BaseFont
 InheritedUNDERLINE_POSITION : int = 13
[static]
BaseFont
 InheritedUNDERLINE_THICKNESS : int = 14
[static]
BaseFont
 InheritedUniCNS_UCS2_H : String = UniCNS-UCS2-H
[static]
BaseFont
 InheritedUniCNS_UCS2_V : String = UniCNS-UCS2-V
[static]
BaseFont
 InheritedUniGB_UCS2_H : String = UniGB-UCS2-H
[static]
BaseFont
 InheritedUniGB_UCS2_V : String = UniGB-UCS2-V
[static]
BaseFont
 InheritedUniJIS_UCS2_H : String = UniJIS-UCS2-H
[static]
BaseFont
 InheritedUniJIS_UCS2_HW_H : String = UniJIS-UCS2-HW-H
[static]
BaseFont
 InheritedUniJIS_UCS2_HW_V : String = UniJIS-UCS2-HW-V
[static]
BaseFont
 InheritedUniJIS_UCS2_V : String = UniJIS-UCS2-V
[static]
BaseFont
 InheritedUniKS_UCS2_H : String = UniKS-UCS2-H
[static]
BaseFont
 InheritedUniKS_UCS2_V : String = UniKS-UCS2-V
[static]
BaseFont
 InheritedWINANSI : String = Cp1252
[static]
BaseFont
 InheritedZAPFDINGBATS : String = ZapfDingbats.afm
[static]
BaseFont
Constructor Detail
TrueTypeFontUnicode()Constructor
public function TrueTypeFontUnicode()



Method Detail
_getWidthI()method
override protected function _getWidthI(code:int):int

Parameters

code:int

Returns
int
_getWidthS()method 
override protected function _getWidthS(text:String):int

Parameters

text:String

Returns
int
charExists()method 
override public function charExists(c:int):Boolean

Parameters

c:int

Returns
Boolean
convertToByte()method 
override public function convertToByte(char1:int):Bytes

Parameters

char1:int

Returns
Bytes
convertToBytes()method 
override public function convertToBytes(char1:String):Bytes

Parameters

char1:String

Returns
Bytes
getMetricsTT()method 
override public function getMetricsTT(c:int):Vector.<int>

Parameters

c:int

Returns
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>