On Mon, Oct 02, 2006 at 05:54:41PM +0200, Abdelrazak Younes wrote:
> Enrico Forestieri wrote:
> >On Mon, Oct 02, 2006 at 11:34:43AM +0200, Abdelrazak Younes wrote:
> >>With Georg's and Edwin's corrections.
> >
> >Sorry for not catching this earlier, but if you substitute Q_WS_WIN
> >with something else, please also take into account that it is also
> >defined in a cygwin build without X11. So, the correct substitution
> >for "#ifdef Q_WS_WIN" is
> >
> >#if defined(_WIN32) || (defined(__CYGWIN__) && defined(X_DISPLAY_MISSING))
> 
> I don't understand... If they are usable on windows, why don't you want 
> to use these fonts on Cygwin/X11 too? Hopefully Qt/Cygwin/X11 can use 
> them, no?

Yes, Qt/Cygwin/X11 uses them, too, but through fontconfig. The call to
those Windows APIs in this case is completely ignored by the X-server.
Rather, the directory containing the fonts should be listed in
/etc/fonts/local.conf and fc-cache run on it. A completely different
mechanism, as you can see.

> >I can do the corrections later (currently building). 
> 
> Please. Test and commit the proper fix.

No need to test, I use that code daily so I know ;-)
It is not dramatic as you can also install the fonts through the
Windows GUI, but it is quite a convenient mechanism.
I will soon commit a fix.

-- 
Enrico

Reply via email to