Renders fonts into WebGL context.
- Font Face loading
- GL Text rendering
- Font atlas
Loads a WebFont for use with an application.
var face = new FontFace('family', 'url("http://src.url/font.woff") format("woff")');
face.load()
.then(success, error);
Creates a texture for rendering font to GL.
var font = new Font('family', {gl : glContext});
font.ready.then(success, error);
Renders a string to GL.
var text = new Text('message', font, gl);
text.render(perspectiveMatrix, modelViewMatrix);
- toji/gl-matrix - Required for text rendering.