Package | org.purepdf.pdf.fonts |
Class | public class Type1Font |
Inheritance | Type1Font BaseFont it.sephiroth.utils.ObjectHash |
Property | Defined By | ||
---|---|---|---|
_builtinFonts14 : HashMap [static] | BaseFont | ||
charBBoxes : Vector.<Vector.<int>> | BaseFont | ||
_compressionLevel : int | BaseFont | ||
differences : Vector.<String> | BaseFont | ||
directTextToByte : Boolean = false | BaseFont | ||
embedded : Boolean | BaseFont | ||
_encoding : String | BaseFont | ||
fastWinansi : Boolean = false | BaseFont | ||
fontCache : HashMap [static] | BaseFont | ||
_fontSpecific : Boolean = true | BaseFont | ||
_fontType : int | BaseFont | ||
forceWidthsOutput : Boolean = false | BaseFont | ||
pfb : Vector.<int> | Type1Font | ||
specialMap : Object | BaseFont | ||
_subset : Boolean = true | BaseFont | ||
subsetRanges : Vector.<Vector.<int>> | BaseFont | ||
unicodeDifferences : Vector.<int> | BaseFont | ||
widths : Vector.<int> | BaseFont |
Method | Defined By | ||
---|---|---|---|
Type1Font(afmFile:String, enc:String, emb:Boolean, ttfAfm:Vector.<int>, pfb:Vector.<int>, forceRead:Boolean) | Type1Font | ||
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>> [override] | Type1Font | ||
getFontDescriptor(key:int, fontSize:Number):Number [override] | Type1Font | ||
[override] | Type1Font | ||
getKerning(char1:int, char2:int):int [override] | Type1Font | ||
getPostscriptFontName():String [override] | Type1Font | ||
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] | Type1Font | ||
setKerning(char1:int, char2:int, kern:int):Boolean | BaseFont | ||
[override] | Type1Font |
Method | Defined By | ||
---|---|---|---|
_getWidthI(code:int):int | BaseFont | ||
_getWidthS(text:String):int | BaseFont | ||
createEncoding():void | BaseFont | ||
getBaseName(name:String):String [static]
Gets the fontname without the modifiers Bold, Italic or BoldItalic. | BaseFont | ||
getRawCharBBox(c:int, name:String):Vector.<int> [override] | Type1Font | ||
getRawWidth(c:int, name:String):int [override] | Type1Font | ||
normalizeEncoding(enc:String):String [static]
Normalize the encoding name
| BaseFont |
pfb | property |
protected var pfb:Vector.<int>
Type1Font | () | Constructor |
public function Type1Font(afmFile:String, enc:String, emb:Boolean, ttfAfm:Vector.<int>, pfb:Vector.<int>, forceRead:Boolean)
afmFile:String | |
enc:String | |
emb:Boolean | |
ttfAfm:Vector.<int> | |
pfb:Vector.<int> | |
forceRead:Boolean |
getFamilyFontName | () | method |
override public function getFamilyFontName():Vector.<Vector.<String>>
ReturnsVector.<Vector.<String>> |
getFontDescriptor | () | method |
override public function getFontDescriptor(key:int, fontSize:Number):Number
Parameters
key:int | |
fontSize:Number |
Number |
getFullFontStream | () | method |
getKerning | () | method |
override public function getKerning(char1:int, char2:int):int
Parameters
char1:int | |
char2:int |
int |
getPostscriptFontName | () | method |
override public function getPostscriptFontName():String
ReturnsString |
getRawCharBBox | () | method |
override protected function getRawCharBBox(c:int, name:String):Vector.<int>
Parameters
c:int | |
name:String |
Vector.<int> |
getRawWidth | () | method |
override protected function getRawWidth(c:int, name:String):int
Parameters
c:int | |
name:String |
int |
hasKernPairs | () | method |
override public function hasKernPairs():Boolean
ReturnsBoolean |
writeFont | () | method |
override public function writeFont(writer:PdfWriter, ref:PdfIndirectReference, params:Vector.<Object>):void
Parameters
writer:PdfWriter | |
ref:PdfIndirectReference | |
params:Vector.<Object> |