Re: How to set default font and the subsititution font?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The SystemLink works well but the default font works sometimes.

Applications use "Tahoma" as the default font sometimes, eg. the
buttong label of winecfg,
and still use stsingkai.ttf in other times, eg. the menu of notepad.exe

system.reg contains the following content:

[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes]
......
"MS Shell Dlg"="Tahoma"
"MS Shell Dlg 2"="Tahoma"
.....

[Software\\Microsoft\\Windows NT\\CurrentVersion\\FontLink\\SystemLink]
"Tahoma"=str(7):"simsun.ttf\0"


2007/5/25, Nigel Liang <ncliang@xxxxxxxxx>:
> Then the second problem is How to set the
> substitution font of a font? If the encoding of a
> char is not in the range of the encoding of the
> font, then the substitution font is loaded. If I
> set "Tahoma" as the default font and simsun.ttf as
> the substitution font of "Tahoma", then wine can
> show acsii via "Tahoma" and chinese words via
> simsun.ttf

This can be done by adding the following entry in ~/.wine/system.reg
-- snip --
[Software\\Microsoft\\Windows
NT\\CurrentVersion\\FontLink\\SystemLink] 1150441842
"Tahoma"=str(7):"simsun.ttf\0"
-- snip --
This registry specifies that simsun should be used as a "fallback"
font for Tahoma in case the char is not present in Tahoma. Similarly,
you can also add font link for other fonts.

-Nigel


_______________________________________________
wine-users mailing list
wine-users@xxxxxxxxxx
http://www.winehq.org/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux