According to the FreeType documentation, the fastest way to compute the width of some text string is to use FT_Get_Advance function that returns the advance values without loading and rendering the glyphs.
But working on this task, I figured out, that using the cache sub-system and loading the whole images with "FTC_ImageCache_Lookup" and using the advance from the loaded image is faster than the above function. And faster at least 5..10 times! Is it expected behaviour or I am using FT_Get_Advance not properly? -- http://fresh.flatassembler.net http://asm32.info John Found <[email protected]> _______________________________________________ Freetype mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/freetype
