Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3744cd88
Commit
3744cd88
authored
Mar 05, 2007
by
Aric Stewart
Committed by
Alexandre Julliard
Mar 06, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Set FontSubstitute values by locale.
parent
a105c6b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
freetype.c
dlls/gdi32/freetype.c
+25
-0
wine.inf
tools/wine.inf
+0
-2
No files found.
dlls/gdi32/freetype.c
View file @
3744cd88
...
@@ -1732,67 +1732,84 @@ static const struct nls_update_font_list
...
@@ -1732,67 +1732,84 @@ static const struct nls_update_font_list
UINT
ansi_cp
,
oem_cp
;
UINT
ansi_cp
,
oem_cp
;
const
char
*
oem
,
*
fixed
,
*
system
;
const
char
*
oem
,
*
fixed
,
*
system
;
const
char
*
courier
,
*
serif
,
*
small
,
*
sserif
;
const
char
*
courier
,
*
serif
,
*
small
,
*
sserif
;
/* these are for font substitute */
const
char
*
shelldlg
,
*
tmsrmn
;
}
nls_update_font_list
[]
=
}
nls_update_font_list
[]
=
{
{
/* Latin 1 (United States) */
/* Latin 1 (United States) */
{
1252
,
437
,
"vgaoem.fon"
,
"vgafix.fon"
,
"vgasys.fon"
,
{
1252
,
437
,
"vgaoem.fon"
,
"vgafix.fon"
,
"vgasys.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"Tahoma"
,
"Times New Roman"
,
},
},
/* Latin 1 (Multilingual) */
/* Latin 1 (Multilingual) */
{
1252
,
850
,
"vga850.fon"
,
"vgafix.fon"
,
"vgasys.fon"
,
{
1252
,
850
,
"vga850.fon"
,
"vgafix.fon"
,
"vgasys.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Eastern Europe */
/* Eastern Europe */
{
1250
,
852
,
"vga852.fon"
,
"vgafixe.fon"
,
"vgasyse.fon"
,
{
1250
,
852
,
"vga852.fon"
,
"vgafixe.fon"
,
"vgasyse.fon"
,
"couree.fon"
,
"serifee.fon"
,
"smallee.fon"
,
"sserifee.fon"
,
"couree.fon"
,
"serifee.fon"
,
"smallee.fon"
,
"sserifee.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Cyrillic */
/* Cyrillic */
{
1251
,
866
,
"vga866.fon"
,
"vgafixr.fon"
,
"vgasysr.fon"
,
{
1251
,
866
,
"vga866.fon"
,
"vgafixr.fon"
,
"vgasysr.fon"
,
"courer.fon"
,
"serifer.fon"
,
"smaller.fon"
,
"sserifer.fon"
,
"courer.fon"
,
"serifer.fon"
,
"smaller.fon"
,
"sserifer.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Greek */
/* Greek */
{
1253
,
737
,
"vga869.fon"
,
"vgafixg.fon"
,
"vgasysg.fon"
,
{
1253
,
737
,
"vga869.fon"
,
"vgafixg.fon"
,
"vgasysg.fon"
,
"coureg.fon"
,
"serifeg.fon"
,
"smalleg.fon"
,
"sserifeg.fon"
,
"coureg.fon"
,
"serifeg.fon"
,
"smalleg.fon"
,
"sserifeg.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Turkish */
/* Turkish */
{
1254
,
857
,
"vga857.fon"
,
"vgafixt.fon"
,
"vgasyst.fon"
,
{
1254
,
857
,
"vga857.fon"
,
"vgafixt.fon"
,
"vgasyst.fon"
,
"couret.fon"
,
"serifet.fon"
,
"smallet.fon"
,
"sserifet.fon"
,
"couret.fon"
,
"serifet.fon"
,
"smallet.fon"
,
"sserifet.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Hebrew */
/* Hebrew */
{
1255
,
862
,
"vgaoem.fon"
,
"vgaf1255.fon"
,
"vgas1255.fon"
,
{
1255
,
862
,
"vgaoem.fon"
,
"vgaf1255.fon"
,
"vgas1255.fon"
,
"coue1255.fon"
,
"sere1255.fon"
,
"smae1255.fon"
,
"ssee1255.fon"
,
"coue1255.fon"
,
"sere1255.fon"
,
"smae1255.fon"
,
"ssee1255.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Arabic */
/* Arabic */
{
1256
,
720
,
"vgaoem.fon"
,
"vgaf1256.fon"
,
"vgas1256.fon"
,
{
1256
,
720
,
"vgaoem.fon"
,
"vgaf1256.fon"
,
"vgas1256.fon"
,
"coue1256.fon"
,
"sere1256.fon"
,
"smae1256.fon"
,
"ssee1256.fon"
,
"coue1256.fon"
,
"sere1256.fon"
,
"smae1256.fon"
,
"ssee1256.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Baltic */
/* Baltic */
{
1257
,
775
,
"vga775.fon"
,
"vgaf1257.fon"
,
"vgas1257.fon"
,
{
1257
,
775
,
"vga775.fon"
,
"vgaf1257.fon"
,
"vgas1257.fon"
,
"coue1257.fon"
,
"sere1257.fon"
,
"smae1257.fon"
,
"ssee1257.fon"
,
"coue1257.fon"
,
"sere1257.fon"
,
"smae1257.fon"
,
"ssee1257.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Vietnamese */
/* Vietnamese */
{
1258
,
1258
,
"vga850.fon"
,
"vgafix.fon"
,
"vgasys.fon"
,
{
1258
,
1258
,
"vga850.fon"
,
"vgafix.fon"
,
"vgasys.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Thai */
/* Thai */
{
874
,
874
,
"vga850.fon"
,
"vgaf874.fon"
,
"vgas874.fon"
,
{
874
,
874
,
"vga850.fon"
,
"vgaf874.fon"
,
"vgas874.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"ssee874.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"ssee874.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Japanese */
/* Japanese */
{
932
,
932
,
"vga932.fon"
,
"jvgafix.fon"
,
"jvgasys.fon"
,
{
932
,
932
,
"vga932.fon"
,
"jvgafix.fon"
,
"jvgasys.fon"
,
"coure.fon"
,
"serife.fon"
,
"jsmalle.fon"
,
"sserife.fon"
,
"coure.fon"
,
"serife.fon"
,
"jsmalle.fon"
,
"sserife.fon"
,
"MS UI Gothic"
,
"MS Serif"
,
},
},
/* Chinese Simplified */
/* Chinese Simplified */
{
936
,
936
,
"vga936.fon"
,
"svgafix.fon"
,
"svgasys.fon"
,
{
936
,
936
,
"vga936.fon"
,
"svgafix.fon"
,
"svgasys.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Korean */
/* Korean */
{
949
,
949
,
"vga949.fon"
,
"hvgafix.fon"
,
"hvgasys.fon"
,
{
949
,
949
,
"vga949.fon"
,
"hvgafix.fon"
,
"hvgasys.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
},
},
/* Chinese Traditional */
/* Chinese Traditional */
{
950
,
950
,
"vga950.fon"
,
"cvgafix.fon"
,
"cvgasys.fon"
,
{
950
,
950
,
"vga950.fon"
,
"cvgafix.fon"
,
"cvgasys.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"coure.fon"
,
"serife.fon"
,
"smalle.fon"
,
"sserife.fon"
,
"Tahoma"
,
"Times New Roman"
,
/* FIXME unverified */
}
}
};
};
...
@@ -1883,6 +1900,14 @@ static void update_font_info(void)
...
@@ -1883,6 +1900,14 @@ static void update_font_info(void)
add_font_list
(
hkey
,
&
nls_update_font_list
[
i
]);
add_font_list
(
hkey
,
&
nls_update_font_list
[
i
]);
RegCloseKey
(
hkey
);
RegCloseKey
(
hkey
);
if
(
!
RegCreateKeyA
(
HKEY_LOCAL_MACHINE
,
"Software
\\
Microsoft
\\
Windows NT
\\
CurrentVersion
\\
FontSubstitutes"
,
&
hkey
))
{
RegSetValueExA
(
hkey
,
"MS Shell Dlg"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
nls_update_font_list
[
i
].
shelldlg
,
strlen
(
nls_update_font_list
[
i
].
shelldlg
)
+
1
);
RegSetValueExA
(
hkey
,
"Tms Rmn"
,
0
,
REG_SZ
,
(
const
BYTE
*
)
nls_update_font_list
[
i
].
tmsrmn
,
strlen
(
nls_update_font_list
[
i
].
tmsrmn
)
+
1
);
RegCloseKey
(
hkey
);
}
return
;
return
;
}
}
}
}
...
...
tools/wine.inf
View file @
3744cd88
...
@@ -251,14 +251,12 @@ HKLM,%FontSubStr%,"Courier New Greek,161",,"Courier New,161"
...
@@ -251,14 +251,12 @@ HKLM,%FontSubStr%,"Courier New Greek,161",,"Courier New,161"
HKLM,%FontSubStr%,"Courier New TUR,162",,"Courier New,162"
HKLM,%FontSubStr%,"Courier New TUR,162",,"Courier New,162"
HKLM,%FontSubStr%,"Helv",,"MS Sans Serif"
HKLM,%FontSubStr%,"Helv",,"MS Sans Serif"
HKLM,%FontSubStr%,"Helvetica",,"Arial"
HKLM,%FontSubStr%,"Helvetica",,"Arial"
HKLM,%FontSubStr%,"MS Shell Dlg",,"Tahoma"
HKLM,%FontSubStr%,"MS Shell Dlg 2",,"Tahoma"
HKLM,%FontSubStr%,"MS Shell Dlg 2",,"Tahoma"
HKLM,%FontSubStr%,"Times",,"Times New Roman"
HKLM,%FontSubStr%,"Times",,"Times New Roman"
HKLM,%FontSubStr%,"Times New Roman CE,238",,"Times New Roman,238"
HKLM,%FontSubStr%,"Times New Roman CE,238",,"Times New Roman,238"
HKLM,%FontSubStr%,"Times New Roman CYR,204",,"Times New Roman,204"
HKLM,%FontSubStr%,"Times New Roman CYR,204",,"Times New Roman,204"
HKLM,%FontSubStr%,"Times New Roman Greek,161",,"Times New Roman,161"
HKLM,%FontSubStr%,"Times New Roman Greek,161",,"Times New Roman,161"
HKLM,%FontSubStr%,"Times New Roman TUR,162",,"Times New Roman,162"
HKLM,%FontSubStr%,"Times New Roman TUR,162",,"Times New Roman,162"
HKLM,%FontSubStr%,"Tms Rmn",,"Times New Roman"
HKLM,System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts,"LogPixels",0x10003,0x00000060
HKLM,System\CurrentControlSet\Hardware Profiles\Current\Software\Fonts,"LogPixels",0x10003,0x00000060
[MCI]
[MCI]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment