ENIGMA Forums

General fluff => General ENIGMA => Topic started by: Goombert on September 12, 2013, 08:54:23 pm

Title: Font Add and Runtime Fonts
Post by: Goombert on September 12, 2013, 08:54:23 pm
Ya font_add crashes, most likely cuz it never packs or renders glyphs. Canthelp was discussing this before with his python IDE rasterizing a font to hand to ENIGMA like the plugin does. ENIGMA needs to be able to render fonts itself.

Code: [Select]
font_add_sprite_ext(spr, string_map, prop, sep);
Also needs some thought because it takes a string that maps the characters to the glyphs.
Title: Re: Font Add and Runtime Fonts
Post by: ssss on September 15, 2013, 04:33:13 am
It never creates the texture of glyphs. Who wants to learn to use libttf?
Title: Re: Font Add and Runtime Fonts
Post by: Goombert on September 15, 2013, 04:34:25 am
I figured you'd say that, it looks like that function is grounds for us to add the dependency, though DirectX can raster the fonts its self.
Title: Re: Font Add and Runtime Fonts
Post by: ssss on September 15, 2013, 04:44:38 am
Can ogl?
Title: Re: Font Add and Runtime Fonts
Post by: Goombert on September 15, 2013, 04:45:42 am
Unlikely :\