Package | org.purepdf.pdf.fonts |
Class | public class DocumentFont |
Inheritance | DocumentFont BaseFont it.sephiroth.utils.ObjectHash |
Property | Defined By | ||
---|---|---|---|
builtinFonts14 : HashMap [static] [read-only] | BaseFont | ||
compressionLevel : int | BaseFont | ||
encoding : String [read-only] | BaseFont | ||
fontSpecific : Boolean | BaseFont | ||
fontType : int [read-only] | BaseFont | ||
indirectReference : PdfIndirectReference [read-only] | DocumentFont | ||
subset : Boolean | BaseFont |
Method | Defined By | ||
---|---|---|---|
DocumentFont | |||
addSubsetTange(range:Vector.<int>):void | BaseFont | ||
charExists(c:int):Boolean | BaseFont | ||
convertToByte(char1:int):Bytes
Converts a char to a Bytes according to the font's encoding. | BaseFont | ||
convertToBytes(char1:String):Bytes
Converts a char to a Bytes according to the font's encoding. | BaseFont | ||
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>> | BaseFont | ||
getFontDescriptor(key:int, fontSize:Number):Number | BaseFont | ||
BaseFont | |||
getKerning(char1:int, char2:int):int
Gets the kerning between two Unicode chars
| BaseFont | ||
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
Checks if the font has any kerning pairs
| BaseFont | ||
setKerning(char1:int, char2:int, kern:int):Boolean | BaseFont | ||
BaseFont |
indirectReference | property |
indirectReference:PdfIndirectReference
[read-only] public function get indirectReference():PdfIndirectReference
DocumentFont | () | Constructor |
public function DocumentFont()