[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft] Faster computation of text width?
From: |
Werner LEMBERG |
Subject: |
Re: [ft] Faster computation of text width? |
Date: |
Fri, 13 Mar 2015 09:45:57 +0100 (CET) |
> 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
- [ft] Faster computation of text width?, John Found, 2015/03/12
- Re: [ft] Faster computation of text width?,
Werner LEMBERG <=
- Re: [ft] Faster computation of text width?, John Found, 2015/03/13
- Re: [ft] Faster computation of text width?, Werner LEMBERG, 2015/03/13
- Re: [ft] Faster computation of text width?, John Found, 2015/03/13
- Re: [ft] Faster computation of text width?, Lawrence D'Oliveiro, 2015/03/13
- Re: [ft] Faster computation of text width?, Werner LEMBERG, 2015/03/14
- Re: [ft] Faster computation of text width?, John Found, 2015/03/14
- Re: [ft] Faster computation of text width?, Werner LEMBERG, 2015/03/18
- Re: [ft] Faster computation of text width?, John Found, 2015/03/18
- Re: [ft] Faster computation of text width?, Werner LEMBERG, 2015/03/18
- Re: [ft] Faster computation of text width?, Lawrence D'Oliveiro, 2015/03/18