Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
a21b3f0a
Commit
a21b3f0a
authored
Jun 07, 2008
by
Zhangrong Huang
Committed by
Alexandre Julliard
Jun 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add more Asian codepages to get default fallback fonts.
parent
61590c61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
freetype.c
dlls/gdi32/freetype.c
+10
-2
No files found.
dlls/gdi32/freetype.c
View file @
a21b3f0a
...
...
@@ -2205,6 +2205,14 @@ static const struct nls_update_font_list
}
};
static
inline
BOOL
is_dbcs_ansi_cp
(
UINT
ansi_cp
)
{
return
(
ansi_cp
==
932
/* CP932 for Japanese */
||
ansi_cp
==
936
/* CP936 for Chinese Simplified */
||
ansi_cp
==
949
/* CP949 for Korean */
||
ansi_cp
==
950
);
/* CP950 for Chinese Traditional */
}
static
inline
HKEY
create_fonts_NT_registry_key
(
void
)
{
HKEY
hkey
=
0
;
...
...
@@ -2256,8 +2264,8 @@ static void update_font_info(void)
(
WCHAR
*
)
&
oem_cp
,
sizeof
(
oem_cp
)
/
sizeof
(
WCHAR
));
sprintf
(
cpbuf
,
"%u,%u"
,
ansi_cp
,
oem_cp
);
/* Setup Default_Fallback usage */
if
(
ansi_cp
==
932
)
/* Setup Default_Fallback usage
for DBCS ANSI codepages
*/
if
(
is_dbcs_ansi_cp
(
ansi_cp
)
)
use_default_fallback
=
TRUE
;
len
=
sizeof
(
buf
);
...
...
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