On Wed, Jul 04, 2007 at 06:53:10AM +0200, Peter Kümmel wrote:

> Enrico Forestieri wrote:
> > On Tue, Jul 03, 2007 at 09:46:54PM +0200, Peter Kümmel wrote:
> > 
> >> Ok, here with the changes for cygwin, BUT I couldn't test it.
> > 
> > And here is the result of my tests. I uninstalled the bakoma fonts
> >>from the Windows fonts dir and reinstalled the same fonts that were
> > giving problems with \kappa (with these fonts installed, I get a
> > hollow square instead of \kappa).
> > 
> > Without the patch, \kappa was again a hollow square. However, after
> > applying the patch, \kappa is still a hollow square. So the patch
> > doesn't seem to be working.
> > 
> > Initially, I thought that the problem was the addition of "_LyX"
> > to the file names, so I removed it but nothing changed. I also
> > ascertained that AddFontResourceEx rather than AddFontResource
> > was being called and even tried rebooting.
> > 
> > Just to be 100% sure, I also tried a mingw build and obtained the
> > same result.
> > 
> 
> As JMarc suggested, does it work when you rename the font file, and
> remove the _LyX from the patch?

No, as I already tried to say. What is worse is that AddFontResource
and AddFontResourceEx don't seem working with Qt4. Everything is ok
only when the fonts are actually installed, otherwise they are not found.
It puzzles me that in Qt3 it works alright, as demonstrated by LyX 1.4.4.

This is what I get when using -dbg font in LyX 1.4.4:

Looking for font family eufm10 ... raw: eufm10
alleged fi family: eufm10
 got it normal!
Looking for font family cmsy10 ... raw: cmsy10
alleged fi family: cmsy10
 got it normal!
Looking for font family cmmi10 ... raw: cmmi10
alleged fi family: cmmi10
 got it normal!
Looking for font family cmr10 ... raw: cmr10
alleged fi family: cmr10
 got it normal!
Looking for font family cmex10 ... raw: cmex10
alleged fi family: cmex10
 got it normal!
Looking for font family msam10 ... raw: msam10
alleged fi family: msam10
 got it normal!
Looking for font family msbm10 ... raw: msbm10
alleged fi family: msbm10
 got it normal!
Looking for font family wasy10 ... raw: wasy10
alleged fi family: wasy10
 got it normal!


and this is the result with 1.5.0svn:

Looking for font family eufm10 ... got: MS Shell Dlg 2
Trying Eufm10 ... got: MS Shell Dlg 2
Trying -*-eufm10-medium-*-*-*-*-*-*-*-*-*-*-* ... got: MS Shell Dlg 2
 FAILED :-(
Looking for font family cmsy10 ... got: cmsy10
 got it normal!
Looking for font family cmmi10 ... got: cmmi10
 got it normal!
Looking for font family cmr10 ... got: cmr10
 got it normal!
Looking for font family cmex10 ... got: cmex10
 got it normal!
Looking for font family msam10 ... got: msam10
 got it normal!
Looking for font family msbm10 ... got: msbm10
 got it normal!
Looking for font family wasy10 ... got: MS Shell Dlg 2
Trying Wasy10 ... got: MS Shell Dlg 2
Trying -*-wasy10-medium-*-*-*-*-*-*-*-*-*-*-* ... got: MS Shell Dlg 2
 FAILED :-(
Looking for font family esint10 ... got: MS Shell Dlg 2
Trying Esint10 ... got: MS Shell Dlg 2
Trying -*-esint10-medium-*-*-*-*-*-*-*-*-*-*-* ... got: MS Shell Dlg 2
 FAILED :-(


Note that cmsy10, cmmi10, cmr10, cmex10, msam10, and msbm10 are *not*
the bakoma fonts and they are installed in the Windows font directory.
The fonts eufm10 and wasy10 are not installed but are added through
AddFontResource, while esint10 doesn't exist. Qt3 is able to find and
use eufm10 and wasy10, while Qt4 does not, apparently.

-- 
Enrico

Reply via email to