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

RE: [XaraXtreme-dev] Rescanning available fonts

--On 18 May 2006 09:39 +0100 Charles Moir <CharlesM@xxxxxxxx> wrote:

The current system detects when fonts are installed / uninstalled and
updates various document structures. So I presume it hangs on some
Windows events to tell us the font catalogue has changed. So that would
be the idea place to trigger the re-cache.  That's on Windows of course.
No idea whether Linux or Mac has any equivalent 'fonts changed'

Clearly that would be the best solution if it exists. Otherwise,
can we poll pango/freetype occasionally (if only to say "how many
fonts are installed and what are their virtualized names" - i.e.
do the current enumeration). If and only if something has changed
we then do a complete reenumerate into the cache. This would then
only fail if someone (say) removed an ATM font and replaced it by
a TrueType font with exactly the same name without an intervening
poll. Clearly the polling should be done from a low priority idle
handler and only occasionally (ever 5 secs or so). Is there any
necessity to do other than when in the text tool?