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
7d118a25
Commit
7d118a25
authored
Apr 09, 2022
by
Esme Povirk
Committed by
Alexandre Julliard
Apr 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Accept newer version in OpenType header.
Signed-off-by:
Esme Povirk
<
esme@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
42f5ff44
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
font.c
dlls/gdiplus/font.c
+7
-4
No files found.
dlls/gdiplus/font.c
View file @
7d118a25
...
...
@@ -106,7 +106,7 @@ typedef struct
#define GET_BE_DWORD(x) (x)
#else
#define GET_BE_WORD(x) MAKEWORD(HIBYTE(x), LOBYTE(x))
#define GET_BE_DWORD(x) MAKELONG(GET_BE_WORD(HIWORD(x)), GET_BE_WORD(LOWORD(x)))
;
#define GET_BE_DWORD(x) MAKELONG(GET_BE_WORD(HIWORD(x)), GET_BE_WORD(LOWORD(x)))
#endif
#define MS_MAKE_TAG(ch0, ch1, ch2, ch3) \
...
...
@@ -1150,14 +1150,16 @@ GpStatus WINGDIPAPI GdipPrivateAddFontFile(GpFontCollection *collection, GDIPCON
#define NAME_ID_FULL_FONT_NAME 4
typedef
struct
{
USHORT
major_version
;
USHORT
minor_version
;
ULONG
version
;
USHORT
tables_no
;
USHORT
search_range
;
USHORT
entry_selector
;
USHORT
range_shift
;
}
tt_header
;
#define TT_HEADER_VERSION_1 0x00010000
#define TT_HEADER_VERSION_CFF 0x4f54544f
typedef
struct
{
char
tag
[
4
];
/* table name */
ULONG
check_sum
;
/* Check sum */
...
...
@@ -1402,7 +1404,8 @@ static WCHAR *load_ttf_name_id( const BYTE *mem, DWORD_PTR size, DWORD id )
header
=
(
const
tt_header
*
)
mem
;
count
=
GET_BE_WORD
(
header
->
tables_no
);
if
(
GET_BE_WORD
(
header
->
major_version
)
!=
1
||
GET_BE_WORD
(
header
->
minor_version
)
!=
0
)
if
(
GET_BE_DWORD
(
header
->
version
)
!=
TT_HEADER_VERSION_1
&&
GET_BE_DWORD
(
header
->
version
)
!=
TT_HEADER_VERSION_CFF
)
return
NULL
;
pos
=
sizeof
(
*
header
);
...
...
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