This module exports a font that may be rendered with WebGL. Check the example.
{ width : Basics.Float
, height : Basics.Float
, textureX : Basics.Float
, textureY : Basics.Float
, x : Basics.Float
, y : Basics.Float
}
Specifies information about the letter:
text : (Letter -> List a) -> String -> List a
A function to print the text, that takes:
addLetter
can for example return two triangles for each letter,
to construct a WebGL mesh
spriteSrc : String
A black and white sprite containing all glyphs in the base64 data uri format. Can be loaded just as any remote url with Texture.load.