I am wondering why textured fonts take so much time to load. Whenever it is loaded though, it is instantaneous.
I have noticed the followings using textured fonts:
If I display a string containing only a few characters ( let's say "123" ), it takes as long as 3 seconds to call the "Render" method ( with Batang font size 50 ).
If I use the same font size with the same facename later to Render "456" or any string with any character not rendered yet, it is instantaneous.
If I do the same using polygon fonts, it is always instantaneous.
I would like to load only the "glyphs" I need and don't worry about the unused ones until I need them.
I can see in the ftgl lib that it is lazy evaluated ( calling MakeGlyph in the Render method ) and it is a good thing, but there must be something under the hood ( probably in freetype2 ) that loads ALL the glyphs I don't need. Because 3 seconds seems a lot too much just to load "123". Especially if displaying "456" right after is instantaneous.
I would like to know if you have a solution for me.
Log in to post a comment.