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
6c1e264e
Commit
6c1e264e
authored
Sep 12, 2012
by
Qian Hong
Committed by
Alexandre Julliard
Sep 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Fixed localized font full name (UNIQUE ID).
parent
dadc409b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
freetype.c
dlls/gdi32/freetype.c
+3
-1
font.c
dlls/gdi32/tests/font.c
+6
-1
No files found.
dlls/gdi32/freetype.c
View file @
6c1e264e
...
...
@@ -6578,7 +6578,9 @@ static BOOL get_outline_text_metrics(GdiFont *font)
}
lenface
=
(
strlenW
(
face_nameW
)
+
1
)
*
sizeof
(
WCHAR
);
full_nameW
=
get_face_name
(
ft_face
,
TT_NAME_ID_UNIQUE_ID
,
TT_MS_LANGID_ENGLISH_UNITED_STATES
);
full_nameW
=
get_face_name
(
ft_face
,
TT_NAME_ID_UNIQUE_ID
,
GetSystemDefaultLangID
()
);
if
(
!
full_nameW
)
full_nameW
=
get_face_name
(
ft_face
,
TT_NAME_ID_UNIQUE_ID
,
TT_MS_LANGID_ENGLISH_UNITED_STATES
);
if
(
!
full_nameW
)
{
WCHAR
fake_nameW
[]
=
{
'f'
,
'a'
,
'k'
,
'e'
,
' '
,
'n'
,
'a'
,
'm'
,
'e'
,
0
};
...
...
dlls/gdi32/tests/font.c
View file @
6c1e264e
...
...
@@ -4147,7 +4147,12 @@ static void test_fullname2_helper(const char *Family)
bufW
[
0
]
=
0
;
bufA
[
0
]
=
0
;
ret
=
get_ttf_nametable_entry
(
hdc
,
TT_NAME_ID_UNIQUE_ID
,
bufW
,
buf_size
,
TT_MS_LANGID_ENGLISH_UNITED_STATES
);
ret
=
get_ttf_nametable_entry
(
hdc
,
TT_NAME_ID_UNIQUE_ID
,
bufW
,
buf_size
,
GetSystemDefaultLangID
());
if
(
!
ret
)
{
trace
(
"no localized UNIQUE_ID found.
\n
"
);
ret
=
get_ttf_nametable_entry
(
hdc
,
TT_NAME_ID_UNIQUE_ID
,
bufW
,
buf_size
,
TT_MS_LANGID_ENGLISH_UNITED_STATES
);
}
ok
(
ret
,
"UNIQUE_ID (full name) could not be read
\n
"
);
WideCharToMultiByte
(
CP_ACP
,
0
,
bufW
,
-
1
,
bufA
,
buf_size
,
NULL
,
FALSE
);
otmStr
=
(
LPSTR
)
otm
+
(
UINT_PTR
)
otm
->
otmpFullName
;
...
...
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