Song Zhiwei
2007-May-23 21:00 UTC
[Wine] How to set default font and the subsititution font?
There are three fonts in c:\windows\fonts: stxingkai.ttf simsun.ttf and simyou.ttf If an application does not specify a font, then stxingkai.ttf is loaded in it to display the text. If I remove the stxingkai.ttf from c:\windows\fonts then it use simyou.ttf to display text. If I remove simyou.ttf again then it use simsun.ttf. But you know, I hope the simsun.ttf is the first choice. Then the first problem is How to set the default font in wine? Actually, I hope the font "Tahoma" as the default font for ascii and simsun.ttf as the default font for chinese words. 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 -- USTC Alumni Email System
Nigel Liang
2007-May-24 13:33 UTC
[Wine] How to set default font and the subsititution font?
> 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.ttfThis 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
Song Zhiwei
2007-May-26 02:58 UTC
[Wine] How to set default font and the subsititution font?
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@gmail.com>:> > 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 >
Song Zhiwei
2007-May-29 19:42 UTC
[Wine] How to set default font and the subsititution font?
Who can explain that the menu of notepad.exe uses the font stxingkai.ttf instead of Tahoma? 2007/5/26, Song Zhiwei <songzw@gmail.com>:> 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@gmail.com>: > > > 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 > > >
Song Zhiwei
2007-May-31 23:12 UTC
[Wine] How to set default font and the subsititution font?
This problem was solved by adding an entry "MS Song"="Tahoma" to [Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes] 2007/5/30, Song Zhiwei <songzw@gmail.com>:> Who can explain that the menu of notepad.exe uses the font > stxingkai.ttf instead of Tahoma? > > 2007/5/26, Song Zhiwei <songzw@gmail.com>: > > 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@gmail.com>: > > > > 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 > > > > > >