-
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 strString The string
colorColor <optional>
Color.white() The color send to the shader.
- Source:
-
Draw a size constrained string on the xy-plane.
Name Type Argument Default Description strString The string
sizeVec2 The size of the bounding box
colorColor <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 vVec2 <optional>
Out size
- Source:
- Type
- Vec2
-
Return the current line height.
- Source:
- Type
- Number
-
Return the bounding box of a string
Name Type Description strString The string
rectRect Out rect
- Source:
- Type
- Rect
-
Return the width of a string.
Name Type Description strString The string
- Source:
- Type
- Number
-
Set the renderable characters.
Name Type Description charsString The characters
- Source:
-
Set the fontsize.
Name Type Description fontSizeNumber The size
- Source:
-
Set the line height.
Name Type Description lineHeightNumber The height
- Source: