-
Notifications
You must be signed in to change notification settings - Fork 3
TextureFont.API
Henryk Wollik edited this page Jul 29, 2014
·
2 revisions
A glyphmap representation of a font.
Name | Type | Argument | Description |
---|---|---|---|
arraybuffer |
ArrayBuffer | The font data |
|
textureUnit |
Number |
<optional> |
The target texture unit |
- Source:
-
Return the default renderable chracters.
- Source:
- Type
- String
-
Delete the glyphmap texture.
- Source:
-
Draw a string on the xy-plane.
Name Type Argument Default Description str
String The string
color
Color <optional>
Color.white() The color send to the shader.
- Source:
-
Draw a size constrained string on the xy-plane.
Name Type Argument Default Description str
String The string
size
Vec2 The size of the bounding box
color
Color <optional>
Color.white() The color send to the shader
- Source:
-
Return the currently renderable characters.
- Source:
- Type
- String
-
Return the current fontsize;
- Source:
- Type
- Number
-
Return the glyphmap texture.
- Source:
- Type
- WebGLTexture
-
getGlyphTableGLTextureSize(v) → {Vec2}
-
Return the current glyphmap texture size.
Name Type Argument Description v
Vec2 <optional>
Out size
- Source:
- Type
- Vec2
-
Return the current line height.
- Source:
- Type
- Number
-
Return the bounding box of a string
Name Type Description str
String The string
rect
Rect Out rect
- Source:
- Type
- Rect
-
Return the width of a string.
Name Type Description str
String The string
- Source:
- Type
- Number
-
Set the renderable characters.
Name Type Description chars
String The characters
- Source:
-
Set the fontsize.
Name Type Description fontSize
Number The size
- Source:
-
Set the line height.
Name Type Description lineHeight
Number The height
- Source: