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
2bb416ba
Commit
2bb416ba
authored
Jun 16, 2012
by
Akihiro Sagawa
Committed by
Alexandre Julliard
Jun 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fix East-Asian font parameters.
parent
afdc84cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
16 deletions
+9
-16
gdiobj.c
dlls/gdi32/gdiobj.c
+9
-9
font.c
dlls/gdi32/tests/font.c
+0
-7
No files found.
dlls/gdi32/gdiobj.c
View file @
2bb416ba
...
...
@@ -328,12 +328,12 @@ static const struct DefaultFontInfo default_fonts[] =
},
{
SHIFTJIS_CHARSET
,
{
/* System */
1
6
,
7
,
0
,
0
,
FW_BOLD
,
FALSE
,
FALSE
,
FALSE
,
SHIFTJIS_CHARSET
,
1
8
,
8
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
SHIFTJIS_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\0'
}
},
{
/* Device Default */
1
6
,
0
,
0
,
0
,
FW_BOLD
,
FALSE
,
FALSE
,
FALSE
,
SHIFTJIS_CHARSET
,
1
8
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
SHIFTJIS_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\0'
}
},
...
...
@@ -343,7 +343,7 @@ static const struct DefaultFontInfo default_fonts[] =
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
'\0'
}
},
{
/* DefaultGuiFont */
-
1
1
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
SHIFTJIS_CHARSET
,
-
1
2
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
SHIFTJIS_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'M'
,
'S'
,
' '
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
' '
,
'D'
,
'l'
,
'g'
,
'\0'
}
},
...
...
@@ -365,19 +365,19 @@ static const struct DefaultFontInfo default_fonts[] =
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
'\0'
}
},
{
/* DefaultGuiFont */
-
1
1
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
GB2312_CHARSET
,
-
1
2
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
GB2312_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'M'
,
'S'
,
' '
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
' '
,
'D'
,
'l'
,
'g'
,
'\0'
}
},
},
{
HANGEUL_CHARSET
,
{
/* System */
16
,
7
,
0
,
0
,
FW_BOLD
,
FALSE
,
FALSE
,
FALSE
,
HANGEUL_CHARSET
,
16
,
8
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
HANGEUL_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\0'
}
},
{
/* Device Default */
16
,
0
,
0
,
0
,
FW_
BOLD
,
FALSE
,
FALSE
,
FALSE
,
HANGEUL_CHARSET
,
16
,
0
,
0
,
0
,
FW_
NORMAL
,
FALSE
,
FALSE
,
FALSE
,
HANGEUL_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'S'
,
'y'
,
's'
,
't'
,
'e'
,
'm'
,
'\0'
}
},
...
...
@@ -387,7 +387,7 @@ static const struct DefaultFontInfo default_fonts[] =
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
'\0'
}
},
{
/* DefaultGuiFont */
-
1
1
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
HANGEUL_CHARSET
,
-
1
2
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
HANGEUL_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'M'
,
'S'
,
' '
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
' '
,
'D'
,
'l'
,
'g'
,
'\0'
}
},
...
...
@@ -409,7 +409,7 @@ static const struct DefaultFontInfo default_fonts[] =
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
'\0'
}
},
{
/* DefaultGuiFont */
-
1
1
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
CHINESEBIG5_CHARSET
,
-
1
2
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
CHINESEBIG5_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'M'
,
'S'
,
' '
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
' '
,
'D'
,
'l'
,
'g'
,
'\0'
}
},
...
...
@@ -431,7 +431,7 @@ static const struct DefaultFontInfo default_fonts[] =
{
'C'
,
'o'
,
'u'
,
'r'
,
'i'
,
'e'
,
'r'
,
'\0'
}
},
{
/* DefaultGuiFont */
-
1
1
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
JOHAB_CHARSET
,
-
1
2
,
0
,
0
,
0
,
FW_NORMAL
,
FALSE
,
FALSE
,
FALSE
,
JOHAB_CHARSET
,
0
,
0
,
DEFAULT_QUALITY
,
VARIABLE_PITCH
|
FF_SWISS
,
{
'M'
,
'S'
,
' '
,
'S'
,
'h'
,
'e'
,
'l'
,
'l'
,
' '
,
'D'
,
'l'
,
'g'
,
'\0'
}
},
...
...
dlls/gdi32/tests/font.c
View file @
2bb416ba
...
...
@@ -4460,14 +4460,7 @@ static void test_stock_fonts(void)
continue
;
}
if
((
font
[
i
]
==
DEVICE_DEFAULT_FONT
||
font
[
i
]
==
SYSTEM_FONT
)
&&
td
[
i
][
j
].
charset
!=
DEFAULT_CHARSET
)
todo_wine
ok
(
td
[
i
][
j
].
weight
==
lf
.
lfWeight
,
"%d(%d): expected lfWeight %d, got %d
\n
"
,
i
,
j
,
td
[
i
][
j
].
weight
,
lf
.
lfWeight
);
else
ok
(
td
[
i
][
j
].
weight
==
lf
.
lfWeight
,
"%d(%d): expected lfWeight %d, got %d
\n
"
,
i
,
j
,
td
[
i
][
j
].
weight
,
lf
.
lfWeight
);
if
((
font
[
i
]
==
DEFAULT_GUI_FONT
&&
td
[
i
][
j
].
charset
!=
DEFAULT_CHARSET
)
||
((
font
[
i
]
==
DEVICE_DEFAULT_FONT
||
font
[
i
]
==
SYSTEM_FONT
)
&&
td
[
i
][
j
].
charset
==
SHIFTJIS_CHARSET
))
todo_wine
ok
(
td
[
i
][
j
].
height
==
lf
.
lfHeight
,
"%d(%d): expected lfHeight %d, got %d
\n
"
,
i
,
j
,
td
[
i
][
j
].
height
,
lf
.
lfHeight
);
else
ok
(
td
[
i
][
j
].
height
==
lf
.
lfHeight
,
"%d(%d): expected lfHeight %d, got %d
\n
"
,
i
,
j
,
td
[
i
][
j
].
height
,
lf
.
lfHeight
);
if
(
td
[
i
][
j
].
face_name
[
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