Packageorg.alivepdf.fonts
Classpublic final class AFMParser
InheritanceAFMParser Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  ascender : int
[read-only]
AFMParser
  boundingBox : Array
[read-only]
AFMParser
  capHeight : int
[read-only]
AFMParser
  capXHeight : int
[read-only]
AFMParser
  descender : int
[read-only]
AFMParser
  differences : String
[read-only]
AFMParser
  fontName : String
[read-only]
AFMParser
  italicAngle : int
[read-only]
AFMParser
  missingWidth : int
[read-only]
AFMParser
  stdVW : int
[read-only]
AFMParser
  stemV : int
[read-only]
AFMParser
  type : String
[read-only]
AFMParser
  underlinePosition : *
[read-only]
AFMParser
  underlineThickness : *
[read-only]
AFMParser
  weight : String
[read-only]
AFMParser
  widths : Dictionary
[read-only]
AFMParser
Protected Properties
 PropertyDefined By
  _ascender : *
AFMParser
  _boundingBox : Array
AFMParser
  _capHeight : *
AFMParser
  _capXHeight : *
AFMParser
  _descender : *
AFMParser
  _differences : String
AFMParser
  fix : Object
[static]
AFMParser
  _flags : int
AFMParser
  fm : Dictionary
AFMParser
  _fontName : String
AFMParser
  _isFixedPitch : Boolean
AFMParser
  _italicAngle : *
AFMParser
  _missingWidth : int
AFMParser
  _stdVW : *
AFMParser
  _stemV : *
AFMParser
  _type : String
AFMParser
  _underlinePosition : *
AFMParser
  _underlineThickness : *
AFMParser
  _weight : String
AFMParser
  _widths : Dictionary
AFMParser
  widthsBuffer : Dictionary
AFMParser
Public Methods
 MethodDefined By
  
AFMParser(stream:ByteArray, afm:ByteArray, encoding:Class)
AFMParser
  
makeFont(fontfile:ByteArray, afmfile:ByteArray, enc:Class):void
AFMParser
Protected Methods
 MethodDefined By
  
makeFontDescriptor(fm:Object, symbolic:Boolean):void
AFMParser
  
makeFontEncoding(map:Array):String
AFMParser
  
makeWidthArray(buffer:Dictionary):Dictionary
AFMParser
  
readAFM(file:ByteArray, map:Array):Dictionary
AFMParser
  
readMap(enc:ByteArray):Array
AFMParser
Protected Constants
 ConstantDefined By
  AC : String = 20AC
[static]
AFMParser
  C : String = C
[static]
AFMParser
  EURO : String = Euro
[static]
AFMParser
  reg : RegExp
[static]
AFMParser
Property Detail
_ascenderproperty
protected var _ascender:*

_boundingBoxproperty 
protected var _boundingBox:Array

_capHeightproperty 
protected var _capHeight:*

_capXHeightproperty 
protected var _capXHeight:*

_descenderproperty 
protected var _descender:*

_differencesproperty 
protected var _differences:String

_flagsproperty 
protected var _flags:int

_fontNameproperty 
protected var _fontName:String

_isFixedPitchproperty 
protected var _isFixedPitch:Boolean

_italicAngleproperty 
protected var _italicAngle:*

_missingWidthproperty 
protected var _missingWidth:int

_stdVWproperty 
protected var _stdVW:*

_stemVproperty 
protected var _stemV:*

_typeproperty 
protected var _type:String

_underlinePositionproperty 
protected var _underlinePosition:*

_underlineThicknessproperty 
protected var _underlineThickness:*

_weightproperty 
protected var _weight:String

_widthsproperty 
protected var _widths:Dictionary

ascenderproperty 
ascender:int  [read-only]


Implementation
    public function get ascender():int
boundingBoxproperty 
boundingBox:Array  [read-only]


Implementation
    public function get boundingBox():Array
capHeightproperty 
capHeight:int  [read-only]


Implementation
    public function get capHeight():int
capXHeightproperty 
capXHeight:int  [read-only]


Implementation
    public function get capXHeight():int
descenderproperty 
descender:int  [read-only]


Implementation
    public function get descender():int
differencesproperty 
differences:String  [read-only]


Implementation
    public function get differences():String
fixproperty 
protected static var fix:Object

fmproperty 
protected var fm:Dictionary

fontNameproperty 
fontName:String  [read-only]


Implementation
    public function get fontName():String
italicAngleproperty 
italicAngle:int  [read-only]


Implementation
    public function get italicAngle():int
missingWidthproperty 
missingWidth:int  [read-only]


Implementation
    public function get missingWidth():int
stdVWproperty 
stdVW:int  [read-only]


Implementation
    public function get stdVW():int
stemVproperty 
stemV:int  [read-only]


Implementation
    public function get stemV():int
typeproperty 
type:String  [read-only]


Implementation
    public function get type():String
underlinePositionproperty 
underlinePosition:*  [read-only]


Implementation
    public function get underlinePosition():*
underlineThicknessproperty 
underlineThickness:*  [read-only]


Implementation
    public function get underlineThickness():*
weightproperty 
weight:String  [read-only]


Implementation
    public function get weight():String
widthsproperty 
widths:Dictionary  [read-only]


Implementation
    public function get widths():Dictionary
widthsBufferproperty 
protected var widthsBuffer:Dictionary

Constructor Detail
AFMParser()Constructor
public function AFMParser(stream:ByteArray, afm:ByteArray, encoding:Class)



Parameters
stream:ByteArray
 
afm:ByteArray
 
encoding:Class
Method Detail
makeFont()method
public function makeFont(fontfile:ByteArray, afmfile:ByteArray, enc:Class):void

Parameters

fontfile:ByteArray
 
afmfile:ByteArray
 
enc:Class

makeFontDescriptor()method 
protected function makeFontDescriptor(fm:Object, symbolic:Boolean):void

Parameters

fm:Object
 
symbolic:Boolean

makeFontEncoding()method 
protected function makeFontEncoding(map:Array):String

Parameters

map:Array

Returns
String
makeWidthArray()method 
protected function makeWidthArray(buffer:Dictionary):Dictionary

Parameters

buffer:Dictionary

Returns
Dictionary
readAFM()method 
protected function readAFM(file:ByteArray, map:Array):Dictionary

Parameters

file:ByteArray
 
map:Array

Returns
Dictionary
readMap()method 
protected function readMap(enc:ByteArray):Array

Parameters

enc:ByteArray

Returns
Array
Constant Detail
ACConstant
protected static const AC:String = 20AC

CConstant 
protected static const C:String = C

EUROConstant 
protected static const EURO:String = Euro

regConstant 
protected static const reg:RegExp