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
0b58ab7a
Commit
0b58ab7a
authored
Oct 09, 2013
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Oct 09, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Skip linked font like SimSun-ExtB in fixed-pitch font selection.
parent
bb2c32d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
font.c
dlls/gdi32/tests/font.c
+20
-0
No files found.
dlls/gdi32/tests/font.c
View file @
0b58ab7a
...
...
@@ -4009,6 +4009,7 @@ static int CALLBACK create_fixed_pitch_font_proc(const LOGFONT *lpelfe,
CHARSETINFO
csi
;
LOGFONT
lf
=
*
lpelfe
;
HFONT
hfont
;
DWORD
found_subset
;
/* skip bitmap, proportional or vertical font */
if
((
FontType
&
TRUETYPE_FONTTYPE
)
==
0
||
...
...
@@ -4021,6 +4022,25 @@ static int CALLBACK create_fixed_pitch_font_proc(const LOGFONT *lpelfe,
(
lpntmex
->
ntmFontSig
.
fsCsb
[
0
]
&
csi
.
fs
.
fsCsb
[
0
])
==
0
)
return
1
;
/* skip linked font, like SimSun-ExtB */
switch
(
lpelfe
->
lfCharSet
)
{
case
SHIFTJIS_CHARSET
:
found_subset
=
lpntmex
->
ntmFontSig
.
fsUsb
[
1
]
&
(
1
<<
17
);
/* Hiragana */
break
;
case
GB2312_CHARSET
:
case
CHINESEBIG5_CHARSET
:
found_subset
=
lpntmex
->
ntmFontSig
.
fsUsb
[
1
]
&
(
1
<<
16
);
/* CJK Symbols And Punctuation */
break
;
case
HANGEUL_CHARSET
:
found_subset
=
lpntmex
->
ntmFontSig
.
fsUsb
[
1
]
&
(
1
<<
24
);
/* Hangul Syllables */
break
;
default:
found_subset
=
lpntmex
->
ntmFontSig
.
fsUsb
[
0
]
&
(
1
<<
0
);
/* Basic Latin */
break
;
}
if
(
!
found_subset
)
return
1
;
/* test with an odd height */
lf
.
lfHeight
=
-
19
;
lf
.
lfWidth
=
0
;
...
...
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