font methods - Protovision/moonbase GitHub Wiki

font:render( text, color )

Renders the text with the specified color. text is a string, color is a string representing the hexadecimal rgba color. Returns a userdata object of class "moonbase_image"

font:getRenderSize( text )

Returns an array containing the width and height of text if it were rendered with the specified font