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

RE: [XaraXtreme-dev] Rescanning available fonts

In message <D77CE6C4BCF2F6CE439E6764@[]>
          Alex Bligh <alex@xxxxxxxxxxx> wrote:

> --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'
>> messages.
> 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).

Unfortunately, wxWidgets always returns the very set of fonts that was 
active when the application was started, even after additional fonts 
have been installed or fonts have been removed. wxWidgets directly 
calls Pango, which in turn directly calls fontconfig. So, I have to 
conclude that fontconfig does not update its font list.

FreeType, by the way has no concept of installed fonts, its interface 
is based on individual font files you pass it directly. It is the 
responsibility of higher system levels to implement things like font 
paths, font directories and font enumeration. In our case, this is