Packagefrocessing.text
Classpublic class PFont
InheritancePFont Inheritance Object
Implements IBitmapFont
Subclasses PFontLoader

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
  imageDetail : uint
PFont
  leftExtent : Array
PFont
  mbox2 : int
PFont
  name : String
PFont
  psname : String
PFont
  setWidth : Array
PFont
  size : int
[read-only]
PFont
  theight : int
PFont
  topExtent : Array
PFont
  twidth : int
PFont
  value : Array
PFont
  width : Array
PFont
Public Methods
 MethodDefined By
  
PFont(dataInput:IDataInput)
PFont
  
charWidth(c:uint):Number
width of char
PFont
  
dispose():void
使用した font image ( BitmapData ) を dispose します.
PFont
  
getFontImage(image_index:uint):BitmapData
文字の BitmapData を取得します.
PFont
  
getHeight(glyph_index:uint):Number
PFont
  
getOffsetX(glyph_index:uint):Number
PFont
  
getOffsetY(glyph_index:uint):Number
PFont
  
getWidth(glyph_index:uint):Number
PFont
  
index(c:uint):int
Get index for the char (convert from unicode to bagel charset).
PFont
  
kern(a:uint, b:uint):Number
not implemented
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

imageDetailproperty 
imageDetail:uint


Implementation
    public function get imageDetail():uint
    public function set imageDetail(value:uint):void
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 
size:int  [read-only]


Implementation
    public function get 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(dataInput:IDataInput)

Parameters
dataInput:IDataInput — vlw形式 を 読み込む IDataInput
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
getHeight()method 
public function getHeight(glyph_index:uint):Number

Parameters

glyph_index:uint

Returns
Number
getOffsetX()method 
public function getOffsetX(glyph_index:uint):Number

Parameters

glyph_index:uint

Returns
Number
getOffsetY()method 
public function getOffsetY(glyph_index:uint):Number

Parameters

glyph_index:uint

Returns
Number
getWidth()method 
public function getWidth(glyph_index:uint):Number

Parameters

glyph_index:uint

Returns
Number
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

not implemented

Parameters

a:uint
 
b:uint

Returns
Number