I tried to follow your guidance and did the following:
I have a windows 2000 partition where the windows installation is at c:\w2000. This partition is mounted as /w2000 therefore I can reach it's fonts directory using the path /w2000/w2000/Fonts. In that directory I have all the fonts that were installed initially on the windows 2000 system.
I added the fontdirs as you described: [FontDirs] "dir1" = "/w2000/w2000/Fonts"
Still the same font problems and the error message below
err:font:XFONT_RealizeFont plf->lfHeight = -2048, Creating a 100 pixel font and rescaling metrics
I also tried to fix the font directory on my wine c:\windows directory (actually /home/tmp/windows) but that one did not work as well. Do you think it might be a filename case problem? I had all file names in that directory in uppercase and I manually (script with tr command) converted them to lowercase. Maybe still the case is wrong?
Shachar Shemesh wrote:
David Harel wrote:
Hi,Hi David,
I installed wine v-20030508 on RH 7.3. Things works fine but a font problem. When I run power point viewer (installed on the RH machine using wine) only few fonts appear correctly. Other are really funny, the text is overlapping, slanted, miniature and so forth. I have similar problems with other applications as well. Please when you answer me go into details like file names and locations and directory full path names whenever it is possible because I am not familiar with wine.
Also note that I was trying to search on the mailing list archive: http://plasma-gate.weizmann.ac.il/Linux/maillists/ghindex.html
before posting this message but I got a 404 Not found error message.
I can think of two possible reasons for the problem you are describing.
Wine uses the X11 font rendering engine only if it really really really really has to. Otherwise, it renders it's own TTF fonts using the freetype library. The reason it only uses the X11 fonts if it really really really really has to is that using them leads to incorrect geometry calculations, and thus problems such as overlaps, missing locales etc. It tries to compensate by precalculating the geomtery (those annoying "calculating fonts geometry" percentage running when you load Wine for the first time), but they are not a good replacement.
So, one possible source for your trouble may be that you are using the X11 fonts, instead of relying on Wine's internal font handling.
Since Wine hates the X11 fonts so much, as soon as *one* font is available for direct rendering, it will no longer look for the X11 fonts at all! This may be a problem as some windows installers install fonts into C:\Windows\Fonts, not realizing that by placing the first font there, all it's existing fonts will sieze to be available.
*What you should do:*
The best solution is to make all the fonts available to Wine for direct rendering. Find where your scalable fonts lie on the HD, and search the ~/.wine/config file for a section marked [FontDirs]. Just uncomment one of the "dir1" entries, and point it to the unix path where your fonts reside (only scalable fonts are supported). You can add as many of those as you like. You can even point it to the unix path where your windows fonts reside, if you happen to have a Windows partition on the same disk.
That's it - all your trouble should evaporate (well, I say "all your trouble", but I really mean, all your Wine related trouble. Of course, I don't mean that either - just your Wine Fonts related problems, and that, also, only as far as I have managed to identify your problem correctly, but I hope you'll be satisfied nontheless).
Of course, instead of changing the config file, you can just copy all of your fonts into whatever happens to be your C:\Windows\Fonts.
Shachar
-- Thanks.
David Harel,
==================================
Home office +972 4 6921986
Fax: +972 4 6921986
Cellular: +972 54 534502
Snail Mail: Amuka
D.N Merom Hagalil
13802
Israel
Email: [EMAIL PROTECTED]
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]
