> 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.

See documentation of FT_ADVANCE_FLAG_FAST_ONLY for reasons why this
can take a long time.

> 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!

Hmm.  Please provide a small snippet that demonstrates the problem.


    Werner

_______________________________________________
Freetype mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype

Reply via email to