Packagefrocessing.text
Classpublic class PFont
ImplementsIFont

Processing形式(vlw)用 の Font クラスです.



Public Properties
 PropertyDefined by
  ascent : Number
[read-only] ascent
PFont
  charCount : int
PFont
  descent : Number
[read-only] descent
PFont
  fheight : Number
PFont
  fwidth : Number
PFont
  height : Array
PFont
  leftExtent : Array
PFont
  mbox2 : int
PFont
  name : String
PFont
  psname : String
PFont
  setWidth : Array
PFont
  size : int
PFont
  theight : int
PFont
  topExtent : Array
PFont
  twidth : int
PFont
  value : Array
PFont
  width : Array
PFont
Public Methods
 MethodDefined by
  
PFont(ust_:IDataInput)
PFont
  
charWidth(c:uint):Number
width of char
PFont
  
dispose():void
使用した font image ( BitmapData ) を dispose します.
PFont
  
getFontImage(image_index:uint):BitmapData
文字の BitmapData を取得します.
PFont
  
index(c:uint):int
Get index for the char (convert from unicode to bagel charset).
PFont
  
kern(a:uint, b:uint):Number
implements yet
PFont
Property detail
ascentproperty
ascent:Number  [read-only]

ascent

Implementation
    public function get ascent():Number
charCountproperty 
public var charCount:int
descentproperty 
descent:Number  [read-only]

descent

Implementation
    public function get descent():Number
fheightproperty 
public var fheight:Number
fwidthproperty 
public var fwidth:Number
heightproperty 
public var height:Array
leftExtentproperty 
public var leftExtent:Array
mbox2property 
public var mbox2:int
nameproperty 
public var name:String
psnameproperty 
public var psname:String
setWidthproperty 
public var setWidth:Array
sizeproperty 
public var size:int
theightproperty 
public var theight:int
topExtentproperty 
public var topExtent:Array
twidthproperty 
public var twidth:int
valueproperty 
public var value:Array
widthproperty 
public var width:Array
Constructor detail
PFont()constructor
public function PFont(ust_:IDataInput)

Parameters
ust_:IDataInput — vlw形式 を 読み込む URLStream
Method detail
charWidth()method
public function charWidth(c:uint):Number

width of char

Parameters
c:uint — charcode

Returns
Number
dispose()method 
public function dispose():void

使用した font image ( BitmapData ) を dispose します.

getFontImage()method 
public function getFontImage(image_index:uint):BitmapData

文字の BitmapData を取得します.

使用した文字(BitmapData)は cache が保持されます.dispose する場合は、dipose() メソッドを実行します.

Parameters
image_index:uint

Returns
BitmapData
index()method 
public function index(c:uint):int

Get index for the char (convert from unicode to bagel charset).

Parameters
c:uint

Returns
int — index into arrays or -1 if not found
kern()method 
public function kern(a:uint, b:uint):Number

implements yet

Parameters
a:uint
 
b:uint

Returns
Number