Package | frocessing.text |
Class | public class PFont |
Inheritance | PFont Object |
Implements | IBitmapFont |
Subclasses | PFontLoader |
Property | Defined 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 |
Method | Defined 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 |
ascent | property |
ascent:Number
[read-only] ascent
public function get ascent():Number
charCount | property |
public var charCount:int
descent | property |
descent:Number
[read-only] descent
public function get descent():Number
fheight | property |
public var fheight:Number
fwidth | property |
public var fwidth:Number
height | property |
public var height:Array
imageDetail | property |
imageDetail:uint
public function get imageDetail():uint
public function set imageDetail(value:uint):void
leftExtent | property |
public var leftExtent:Array
mbox2 | property |
public var mbox2:int
name | property |
public var name:String
psname | property |
public var psname:String
setWidth | property |
public var setWidth:Array
size | property |
size:int
[read-only] public function get size():int
theight | property |
public var theight:int
topExtent | property |
public var topExtent:Array
twidth | property |
public var twidth:int
value | property |
public var value:Array
width | property |
public var width:Array
PFont | () | Constructor |
public function PFont(dataInput:IDataInput)
Parameters
dataInput:IDataInput — vlw形式 を 読み込む IDataInput
|
charWidth | () | method |
public function charWidth(c:uint):Number
width of char
Parameters
c:uint — charcode
|
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 |
BitmapData |
getHeight | () | method |
public function getHeight(glyph_index:uint):Number
Parameters
glyph_index:uint |
Number |
getOffsetX | () | method |
public function getOffsetX(glyph_index:uint):Number
Parameters
glyph_index:uint |
Number |
getOffsetY | () | method |
public function getOffsetY(glyph_index:uint):Number
Parameters
glyph_index:uint |
Number |
getWidth | () | method |
public function getWidth(glyph_index:uint):Number
Parameters
glyph_index:uint |
Number |
index | () | method |
public function index(c:uint):int
Get index for the char (convert from unicode to bagel charset).
Parameters
c:uint |
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 |
Number |