Re: [ft-devel] Does FreeType have internal cache mechanism?
On 18.05.2017 5:59, Chester Hsieh wrote: > Hi, I'm Chester. > > I just start to use FreeType engine, and I'm interested in how it works > with cache. > > Since it would be awesome if the FreeType has a internal cache mechanism so > that once we query a character which had already been queried and cached > before, > the performance would be increased. > > But so far as I saw, a FT face would only have one slot for user to > store the latest > query result. If we start to load new character, it would erase the > previous one. > It doesn't seem like it has a internal cache to handle several recent > query results. > > I guess FreeType should have had a internal cache, but I just miss it. > Can you > enlighten me a direction? In my imagination, there should be somewhere even > allowing user to set a cache/heap size to store the recent query results. It does have caching system, it's documented [1]. Cache is not used internally, so you have to manage it yourself, using freetype cache API. [1] https://www.freetype.org/freetype2/docs/reference/ft2-cache_subsystem.html > > > Thank you very much. > > -Chester > > > ___ > Freetype-devel mailing list > Freetype-devel@nongnu.org > https://lists.nongnu.org/mailman/listinfo/freetype-devel > ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
[ft-devel] Does FreeType have internal cache mechanism?
Hi, I'm Chester. I just start to use FreeType engine, and I'm interested in how it works with cache. Since it would be awesome if the FreeType has a internal cache mechanism so that once we query a character which had already been queried and cached before, the performance would be increased. But so far as I saw, a FT face would only have one slot for user to store the latest query result. If we start to load new character, it would erase the previous one. It doesn't seem like it has a internal cache to handle several recent query results. I guess FreeType should have had a internal cache, but I just miss it. Can you enlighten me a direction? In my imagination, there should be somewhere even allowing user to set a cache/heap size to store the recent query results. Thank you very much. -Chester ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel
[ft-devel] gasp table support
I wonder how to add `gasp' table support for TTFs. A new load flag? Or maybe a TrueType driver and/or face property? The basic idea is that you call `FT_Load_Glyph', and you get the optimal rendering for TTFs depending on the `gasp' table settings – there are good reasons to use it... Suggestions? Werner ___ Freetype-devel mailing list Freetype-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/freetype-devel