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
102b2785
Commit
102b2785
authored
Jun 20, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Add support for loading name strings in Apple Unicode format.
parent
3d0f0448
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
freetype.c
dlls/gdi32/freetype.c
+14
-0
No files found.
dlls/gdi32/freetype.c
View file @
102b2785
...
...
@@ -1325,6 +1325,19 @@ static int match_name_table_language( const FT_SfntName *name, LANGID lang )
if
(
name
->
language_id
>=
sizeof
(
mac_langid_table
)
/
sizeof
(
mac_langid_table
[
0
]))
return
0
;
name_lang
=
mac_langid_table
[
name
->
language_id
];
break
;
case
TT_PLATFORM_APPLE_UNICODE
:
switch
(
name
->
encoding_id
)
{
case
TT_APPLE_ID_DEFAULT
:
case
TT_APPLE_ID_ISO_10646
:
case
TT_APPLE_ID_UNICODE_2_0
:
if
(
name
->
language_id
>=
sizeof
(
mac_langid_table
)
/
sizeof
(
mac_langid_table
[
0
]))
return
0
;
name_lang
=
mac_langid_table
[
name
->
language_id
];
break
;
default:
return
0
;
}
break
;
default:
return
0
;
}
...
...
@@ -1342,6 +1355,7 @@ static WCHAR *copy_name_table_string( const FT_SfntName *name )
switch
(
name
->
platform_id
)
{
case
TT_PLATFORM_APPLE_UNICODE
:
case
TT_PLATFORM_MICROSOFT
:
ret
=
HeapAlloc
(
GetProcessHeap
(),
0
,
name
->
string_len
+
sizeof
(
WCHAR
)
);
for
(
i
=
0
;
i
<
name
->
string_len
/
2
;
i
++
)
...
...
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