[Date Prev][Date Next][Thread Prev][Thread Next][Thread Index]

RE: [XaraXtreme-dev] Font metrics and kerning update

But without any caching does that mean we'd have to call Freetype during
display? That sounds a recipe for really slow text rendering.

Perhaps we do need a better, more smart cache that caches the kerning
pairs used (and it not limited to just 3 fonts).  I wonder whether any
of our existing caches could be used for this. Although to be honest I
presume it should not be too difficult to create a basic kerning pair


> -----Original Message-----
> From: owner-dev@xxxxxxxxxxxxxxxx 
> [mailto:owner-dev@xxxxxxxxxxxxxxxx] On Behalf Of Martin Wuerthner
> Sent: 19 April 2006 17:56
> To: dev@xxxxxxxxxxxxxx
> Subject: RE: [XaraXtreme-dev] Font metrics and kerning update
> In message 
> <5056CBC646CB4047BB26120F4377DB719BA2FC@xxxxxxxxxxxxxxxxxxx 
> >
>           "Charles Moir" <CharlesM@xxxxxxxx> wrote:
> > Does the 'uncached' comment suggest that kerning data is usually 
> > cached in Camelot?
> Yes. The Windows code simply reads the complete kerning table 
> from the font and stores it in a cache. The cache size is 
> configured to be 3, so only 3 fonts can be cached at the same 
> time, i.e., when the 4th is needed one previous entry is discarded.
> With FreeType, it is not possible to read the complete 
> kerning table, and it might not be a good idea for a huge 
> Unicode font anyway. It would still be possible to cache the 
> kerning pairs (and it would probably be a good idea).
> Martin