David Harel wrote:

Hi,

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.


Hi David,

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

--
Shachar Shemesh
Open Source integration consultant
Home page & resume - http://www.shemesh.biz/



=================================================================
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]



Reply via email to