Constructors
constructor
- new Glyph(code: number, x: number, y: number, width: number, height: number, offsetX?: number, offsetY?: number, advanceWidth?: number, surface?: Surface, isSurfaceValid?: boolean): Glyph
-
Parameters
-
code: number
-
x: number
-
y: number
-
width: number
-
height: number
-
Optional offsetX: number
-
Optional offsetY: number
-
Optional advanceWidth: number
-
Optional surface: Surface
-
Optional isSurfaceValid: boolean
Properties
_atlas
advanceWidth
advanceWidth: number
code
code: number
height
height: number
isSurfaceValid
isSurfaceValid: boolean
offsetX
offsetX: number
offsetY
offsetY: number
surface
width
width: number
x
x: number
y
y: number
Methods
renderingWidth
- renderingWidth(fontSize: number): number
-
Parameters
Returns number
グリフ。