harrisi / Console

C++ display front-end using OpenGL for an experimental windowing system.
GNU General Public License v3.0
1 stars 0 forks source link

Prerendering of font cache. #12

Open harrisi opened 7 years ago

harrisi commented 7 years ago

This would just entail going through all glyphs and caching them, as far as I understand. I don't actually think this is a good idea for EVERY glyph. Really the initial rendering is rather quick. I could see some value in pre-rendering ascii glyphs, but even then it's very likely to not make any difference in usage.

ghost commented 7 years ago

It's actually not possible to iterate through all of the glyphs in a font file due to limitations that are claimed to be inherent to Unicode.

For the cache, it may be worth positioning all of the glyphs to be stored in one large bitmap and referring to subsections, though this is far more work. First effort would just be as it is in the code now.