Pages

Monday, May 24, 2010

Wine, winetricks and naughty fonts

When using wine and winetricks, winetrick might complain about samyak and oriya fonts; being naughty non-conformistic naughty fonts and so on.

Apparently, these are included in a bunch of linux distros.

In slackware 13.1 they are included in the package: "ttf-indic-fonts-0.4.7.4-noarch-...".

Just grep oriya in /var/log/packages/ if you don't believe me:

grep -nr oriya /var/log/packages ; xlsfonts 2>/dev/null | egrep -i "samyak|oriya"

Once you've blown the package away, you will find that winetricks will keep on complaining, about those fonts. This is due to "xlsfonts"; this binary is a part of Xorg to show all of your fonts. Run it, to see it for yourself.

I turned off this check in winetricks, by commenting off the code, but somehow the installation of .NET 1 to 3 kept crashing on me. Evidently that check is there for a good reason.

A quick google search reveals that xlsfonts reads its input from /etc/fonts. (edit: This is false. I still have no idea where xorg gets the idea samyak is on my system.)

I crafted a silly little sed command to try to remove it like this:

grep -nr riya . | sed 's@\(Lohit Oriya\)@<!--\1-->@'

Then I committed the changes to the files. Notice the parameter "-i".

sed -i 's@\(Lohit Oriya\)@<!--\1-->@' /etc/fonts/conf.avail/65-nonlatin.conf


Alas, that was a mistake. Since, samyak was found not oriya. Anyway, no harm done. Just uncommented some xml file. This can be easily undone, by firing up an editor and removing it by hand.

That'll teach me to want to use .NET instead of mono.

Argh. Dead end. How do I remove samyak from the system completely?!

Update 20-07-2010:  This is still broken in wine 1.2 with the winetricks from winehq.org. It still prematurely finds the offending samyak. Although .NET 1 through 3 can all install now. You can uncomment the lines in winetrick though to prevent the nagscreen; but you're on your own from there on.

No comments:

Post a Comment

Please help to keep this blog clean. Don't litter with spam.