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
6aadb22b
Commit
6aadb22b
authored
Apr 11, 2002
by
Hidenori Takeshima
Committed by
Alexandre Julliard
Apr 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use hard-coded font name bindings only with the ANSI_CHARSET (non-US
charsets with no font name shouldn't be bound to US charset).
parent
a781a319
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
xfont.c
graphics/x11drv/xfont.c
+14
-1
No files found.
graphics/x11drv/xfont.c
View file @
6aadb22b
...
...
@@ -2602,6 +2602,17 @@ static UINT XFONT_MatchFIList( fontMatch* pfm )
}
/***********************************************************************
* XFONT_is_ansi_charset
*
* returns TRUE if the given charset is ANSI_CHARSET.
*/
static
BOOL
XFONT_is_ansi_charset
(
UINT
charset
)
{
return
((
charset
==
ANSI_CHARSET
)
||
(
charset
==
DEFAULT_CHARSET
&&
GetACP
()
==
1252
));
}
/***********************************************************************
* XFONT_MatchDeviceFont
*
* Scan font resource tree.
...
...
@@ -2619,7 +2630,9 @@ static void XFONT_MatchDeviceFont( fontResource* start, fontMatch* pfm)
pfm
->
pfi
=
NULL
;
if
(
!
fm
.
plf
->
lfFaceName
[
0
]
)
/* the following hard-coded font binding assumes 'ANSI_CHARSET'. */
if
(
!
fm
.
plf
->
lfFaceName
[
0
]
&&
XFONT_is_ansi_charset
(
fm
.
plf
->
lfCharSet
)
)
{
switch
(
fm
.
plf
->
lfPitchAndFamily
&
0xf0
)
{
...
...
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