freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] controlling FreeType modules


From: Werner LEMBERG
Subject: Re: [ft-devel] controlling FreeType modules
Date: Sat, 11 Aug 2012 17:26:07 +0200 (CEST)

Hello Toshiya-san!


Sorry for the late response.

> At present, FTC_Manager instance is allocated with FT_Library's
> allocator, FT_Library object itself does not have a (list of)
> FTC_Manager, so, it could be slightly difficult for set- property
> functions to invoke the cache flusher. There might be 2 ways:
> 
> A) set-property function does not invoke the cache flusher, but sets
> some internal flags in FT_Library or FT_Face to indicate the change
> of the properties. when the cache is accessed, the cache manager
> checks the flag and flush if needed.
> 
> B) put a list of FTC_Manager instance(s list) into FT_Library.  if
> set-property functions are used, FT_Library instances invoke the
> cache flusher of the listed FTC_Manager instance(s).
> 
> Which is better?

What about

 C) If an application uses FreeType's cache system, it should call
    `FTC_Manager_Reset' to flush the cache.

?  This sounds rather straightforward to me, and it fully avoids any
internal hassles.


    Werner



reply via email to

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