5.10. fonttex_bitmap

Copyright @ 2013 Mathias Westerdahl

This is the default rendering of the fonts

texturesize = 512, 512

The desired size of the texture. If it’s too small, the creator will fail.

textureoffset = 0, 0

The offset from the top left corner of the texture to the top left corner of the first glyph. It is used to create a border around the texture. The same border is also applied on the right/bottom sides.

usepremultipliedalpha = 0

If set, will premultiply the alpha

fonttex_bitmap.render(info)[source]

Assuming (0,0) is at the top left corner of the image.

Parameters:info – The settings from the fontinfo file
Returns:The image all glyphs are rendered to