freetype
[Top][All Lists]
Advanced

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

Re: [Freetype] Caching glyph metrics


From: David Turner
Subject: Re: [Freetype] Caching glyph metrics
Date: Thu, 11 Apr 2002 17:30:30 +0200

Hello Michael,

Michael Day a écrit :
> 
> Hi,
> 
> Does anyone have some sample code to subclass FT_Glyph_Cache to cache
> glyph metrics? It should be possible to create a metrics cache by changing
> FT_ImageCache, but this is not very easy when you are still trying to
> understand the caching mechanism.
> 
> Would it be possible to create a cache that stores glyph specific data
> derived by a function passed in at cache creation time, perhaps? That way
> it might be possible to implement image and metric caches sharing the same
> code?
>

I'm afraid that even if the cache sub-system was modified to support this,
you'd need the same knowledge to use it than the one used to create your
own version of FT_ImageCache, FT_SBitCache, FT_CMapCache.

What do you not understand in the cache sub-system ? Are you aware of the
following draft (that is part of the "ft2docs" package):

  http://www.freetype.org/freetype2/docs/cache.html


Hope this helps,

- David Turner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]