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

This class represents a core font. A "Core" font is not embedded in the PDF, its usage relies on the user system fonts.



Public Properties
 PropertyDefined By
  charactersWidth : Object
[read-only]
CoreFont
  id : int
CoreFont
  name : String
CoreFont
  numGlyphs : int
[read-only]
CoreFont
  resourceId : int
CoreFont
  type : String
[read-only]
CoreFont
  underlinePosition : int
[read-only]
CoreFont
  underlineThickness : int
[read-only]
CoreFont
Protected Properties
 PropertyDefined By
  _charactersWidth : Object
CoreFont
  dispatcher : EventDispatcher
CoreFont
  _id : int
CoreFont
  _name : String
CoreFont
  _numGlyphs : int
CoreFont
  _resourceId : int
CoreFont
  _type : String
CoreFont
  _underlinePosition : int = -100
CoreFont
  _underlineThickness : int = 50
CoreFont
Public Methods
 MethodDefined By
  
CoreFont(name:String = Helvetica)
CoreFont
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
CoreFont
  
dispatchEvent(event:Event):Boolean
CoreFont
  
hasEventListener(type:String):Boolean
CoreFont
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
CoreFont
  
toString():String
CoreFont
  
willTrigger(type:String):Boolean
CoreFont
Property Detail
_charactersWidthproperty
protected var _charactersWidth:Object

_idproperty 
protected var _id:int

_nameproperty 
protected var _name:String

_numGlyphsproperty 
protected var _numGlyphs:int

_resourceIdproperty 
protected var _resourceId:int

_typeproperty 
protected var _type:String

_underlinePositionproperty 
protected var _underlinePosition:int = -100

_underlineThicknessproperty 
protected var _underlineThickness:int = 50

charactersWidthproperty 
charactersWidth:Object  [read-only]


Implementation
    public function get charactersWidth():Object
dispatcherproperty 
protected var dispatcher:EventDispatcher

idproperty 
id:int


Implementation
    public function get id():int
    public function set id(value:int):void
nameproperty 
name:String


Implementation
    public function get name():String
    public function set name(value:String):void
numGlyphsproperty 
numGlyphs:int  [read-only]


Implementation
    public function get numGlyphs():int
resourceIdproperty 
resourceId:int


Implementation
    public function get resourceId():int
    public function set resourceId(value:int):void
typeproperty 
type:String  [read-only]


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


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


Implementation
    public function get underlineThickness():int
Constructor Detail
CoreFont()Constructor
public function CoreFont(name:String = Helvetica)



Parameters
name:String (default = Helvetica)
Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
useWeakReference:Boolean (default = false)

dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

toString()method 
public function toString():String

Returns
String
willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean