Text example

Show­case of Mag­num dis­tance-field text ren­der­ing. In­stead of ren­der­ing the glyphs for each size the glyphs are pre­ren­dered and con­vert­ed in­to signed dis­tance field tex­ture. The tex­ture is then used for ren­der­ing the text. Both glyph pre­ren­der­ing and the ac­tu­al text lay­out­ing sup­ports UTF-8. For mu­ta­ble text, buf­fer map­ping is used.

Initialization...