Packageorg.alivepdf.fonts
Classpublic class EmbeddedFont
InheritanceEmbeddedFont Inheritance CoreFont Inheritance Object
Implements IFont

This class represents an embedded font. An "Embedded" font is embedded in the PDF which results in a bigger PDF size.



Public Properties
 PropertyDefined By
 InheritedcharactersWidth : Object
[read-only]
CoreFont
  description : FontDescription
[read-only]
EmbeddedFont
  differences : String
EmbeddedFont
  encoding : Class
[read-only]
EmbeddedFont
 Inheritedid : int
CoreFont
 Inheritedname : String
CoreFont
 InheritednumGlyphs : int
[read-only]
CoreFont
  originalSize : int
[read-only]
EmbeddedFont
 InheritedresourceId : int
CoreFont
  stream : ByteArray
[read-only]
EmbeddedFont
 Inheritedtype : String
[read-only]
CoreFont
 InheritedunderlinePosition : int
[read-only]
CoreFont
 InheritedunderlineThickness : int
[read-only]
CoreFont
  weight : String
[read-only]
EmbeddedFont
  widths : Object
[read-only]
EmbeddedFont
Protected Properties
 PropertyDefined By
  _afmParser : AFMParser
EmbeddedFont
 Inherited_charactersWidth : Object
CoreFont
  _description : FontDescription
EmbeddedFont
  _differences : String
EmbeddedFont
 Inheriteddispatcher : EventDispatcher
CoreFont
  _encoding : Class
EmbeddedFont
 Inherited_id : int
CoreFont
 Inherited_name : String
CoreFont
 Inherited_numGlyphs : int
CoreFont
  _originalSize : int
EmbeddedFont
 Inherited_resourceId : int
CoreFont
  _stream : ByteArray
EmbeddedFont
 Inherited_type : String
CoreFont
 Inherited_underlinePosition : int = -100
CoreFont
 Inherited_underlineThickness : int = 50
CoreFont
  _version : String
EmbeddedFont
  _weight : String
EmbeddedFont
  _widths : Object
EmbeddedFont
Public Methods
 MethodDefined By
  
EmbeddedFont(stream:ByteArray, afm:ByteArray, codePage:Class)
EmbeddedFont
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
CoreFont
 Inherited
dispatchEvent(event:Event):Boolean
CoreFont
 Inherited
hasEventListener(type:String):Boolean
CoreFont
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
CoreFont
  
toString():String
[override]
EmbeddedFont
 Inherited
willTrigger(type:String):Boolean
CoreFont
Property Detail
_afmParserproperty
protected var _afmParser:AFMParser

_descriptionproperty 
protected var _description:FontDescription

_differencesproperty 
protected var _differences:String

_encodingproperty 
protected var _encoding:Class

_originalSizeproperty 
protected var _originalSize:int

_streamproperty 
protected var _stream:ByteArray

_versionproperty 
protected var _version:String

_weightproperty 
protected var _weight:String

_widthsproperty 
protected var _widths:Object

descriptionproperty 
description:FontDescription  [read-only]


Implementation
    public function get description():FontDescription
differencesproperty 
differences:String


Implementation
    public function get differences():String
    public function set differences(value:String):void
encodingproperty 
encoding:Class  [read-only]


Implementation
    public function get encoding():Class
originalSizeproperty 
originalSize:int  [read-only]


Implementation
    public function get originalSize():int
streamproperty 
stream:ByteArray  [read-only]


Implementation
    public function get stream():ByteArray
weightproperty 
weight:String  [read-only]


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


Implementation
    public function get widths():Object
Constructor Detail
EmbeddedFont()Constructor
public function EmbeddedFont(stream:ByteArray, afm:ByteArray, codePage:Class)

Parameters
stream:ByteArray — The font stream - TrueType (.TTF) for now
 
afm:ByteArray — Adobe Font Metrics file (.AFM)
 
codePage:Class — The character mapping table - Default CodePage.1252
Method Detail
toString()method
override public function toString():String

Returns
String