You are not logged in.

#1 2012-02-03 19:55:01

johni
Member
Registered: 2012-02-03
Posts: 102

Wine LCD rendering [ SOLVED ]

I just switched to arch from many years of a custom Linux from Scratch build.  Everything is working great, but I can't seem to get wine to do the full LCD rendering I am used to.

I have tried installing the following form AUR:
freetype2-ubuntu  , lib32-freetype2-ubuntu
libxft-ubuntu,  lib32-libxft-ubuntu
fontconfig-ubuntu, lib32-fontconfig-ubuntu
cairo-ubuntu, lib32-cairo-ubuntu

LCD rendering for everything else is great, but not wine.  I've tried "winetricks fontsmooth=rdb", and have installed all windows fonts (ttf-win7-fonts).
I have also tried the "cleartype" equivalent LCD patces from AUR as well (freetype2-cleartype, libxft-cleartype, fontconfig-cleartype, and cairo-cleartype).

Here is how arch is rendering wine fonts:
wine_arch.png

Here is how my old LFS system rendered wine fonts (Note I took this screenshot from my Arch machine with remote X to a machine with my previous os):
wine_lfs.png

Notice how much better it looked previously.   Any ideas?

Last edited by johni (2012-02-03 22:04:28)

Offline

#2 2012-02-03 20:01:48

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: Wine LCD rendering [ SOLVED ]


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-02-03 20:08:48

johni
Member
Registered: 2012-02-03
Posts: 102

Re: Wine LCD rendering [ SOLVED ]

Thanks for the suggestion.  Unfortunately it made no visible changes to the font rendering.  I tried all 3 smoothing options (Option 3 - Subpixel smoothing (ClearType) RGB) is the desired setting.

Offline

#4 2012-02-03 20:12:56

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Wine LCD rendering [ SOLVED ]

Wine follows your system settings (except one - lcdfilter; and Wine isn't the only one, for example Chromium ignores this setting too). So if you want the old fonts in Wine back, you need to disable anti-aliasing system-wide.

Offline

#5 2012-02-03 20:17:03

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: Wine LCD rendering [ SOLVED ]

Have you simply tried applying different fonts in winecfg?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#6 2012-02-03 20:21:27

johni
Member
Registered: 2012-02-03
Posts: 102

Re: Wine LCD rendering [ SOLVED ]

Gusar wrote:

Wine follows your system settings (except one - lcdfilter; and Wine isn't the only one, for example Chromium ignores this setting too). So if you want the old fonts in Wine back, you need to disable anti-aliasing system-wide.

I'm not sure I follow you.  I want antialiased fonts in wine.  My chromium install has antialias fonts the same as everything else but wine.

Offline

#7 2012-02-03 20:24:32

johni
Member
Registered: 2012-02-03
Posts: 102

Re: Wine LCD rendering [ SOLVED ]

bohoomil wrote:

Have you simply tried applying different fonts in winecfg?

Hmm.  I don't see any place to change fonts in winecfg.  I never had to do this before.  Previously it had the desired font smoothing out of the box with no adjustments at all.

Offline

#8 2012-02-03 20:25:56

bohoomil
Member
Registered: 2010-09-04
Posts: 2,376
Website

Re: Wine LCD rendering [ SOLVED ]

You can change fonts where you customize the look & feel: it's called Desktop integration there.

Edit: when I set up my recent infinality-based fontconfig, I put a separate config file in the conf.avail directory (it's included in the default infinality configs):

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>

	<!-- ******************************************************************  -->
	<!-- *************************** WINE ALIASES *************************  -->
	<!-- ******************************************************************  -->

	<!-- These MS aliases typically are used in user interfaces -->
	<!-- You will mostly run into fonts with these names in WINE programs -->
	<!-- WINE UI fonts - Microsoft Windows Vista/7 Appearance -->

	<alias binding="same">
		<family>System</family>
		<prefer>
			<family>Segoe UI</family>
		</prefer>
	</alias>
	<alias binding="same">
		<family>MS Shell Dlg</family>
		<prefer>
			<family>Segoe UI</family>
		</prefer>
	</alias>
	<alias binding="same">
		<family>MS Sans Serif</family>
		<prefer>
			<family>Segoe UI</family>
		</prefer>
	</alias>

</fontconfig>

Last edited by bohoomil (2012-02-03 20:28:53)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#9 2012-02-03 20:28:37

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: Wine LCD rendering [ SOLVED ]

johni wrote:

I'm not sure I follow you.  I want antialiased fonts in wine.  My chromium install has antialias fonts the same as everything else but wine.

Bah, read you post too fast. Anyway, what I said stands, Wine is following system settings. I have no idea why it doesn't on your machine.

Offline

#10 2012-02-03 22:03:24

johni
Member
Registered: 2012-02-03
Posts: 102

Re: Wine LCD rendering [ SOLVED ]

@bohoomil

You sort of indirectly helped me smile    Your mention of infinalty prompted me to try the infinalty patched in AUR.  They initially didn't appear to work, until I discovered that my konsole sesseions for some reason weren't sourcing the /etc/profile.d/infinality-settings.sh.    I manually sources it, and now wine fonts look the way I expect them to.     I think I need to tweak my .bashrc to find out why.



Many thanks to all who replied!

Offline

#11 2013-03-21 16:38:02

kellerman
Member
From: Latvia
Registered: 2011-07-20
Posts: 110

Re: Wine LCD rendering [ SOLVED ]

I'm gonna bump this old thread up, because nothing from above helped me on XFCE. I installed both 32bit and 64bit freetype2-infinality and it's fontconfig. All good, all fonts are just gorgeous. But wine fonts did look like this:
https://dl.dropbox.com/u/16222427/Ekr%C … 2%3A53.png
For like 2 or 3 months I was unable to solve this (although I didn't focus on that issue very much) and the I found this RGB antialiasing mode under xfce4 appearance settings. After this the fonts looks now very, very good:
https://dl.dropbox.com/u/16222427/Ekr%C … 4%3A01.png
Nothing of above and no other fixes found on the internet helped me. Hope this will be useful for some lucky XFCE users! smile

Last edited by kellerman (2013-03-21 16:49:51)

Offline

Board footer

Powered by FluxBB