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
d2d91fba
Commit
d2d91fba
authored
May 02, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/opentype: Fix incorrect MarkGlyphSets table handling.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e71920d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
opentype.c
dlls/dwrite/opentype.c
+12
-4
No files found.
dlls/dwrite/opentype.c
View file @
d2d91fba
...
...
@@ -475,6 +475,13 @@ struct ot_gdef_classdef_format2
struct
ot_gdef_class_range
ranges
[
1
];
};
struct
ot_gdef_markglyphsets
{
uint16_t
format
;
uint16_t
count
;
uint32_t
offsets
[
1
];
};
struct
gpos_gsub_header
{
uint16_t
major_version
;
...
...
@@ -3762,7 +3769,7 @@ static BOOL opentype_match_coverage_func(UINT16 glyph, UINT16 glyph_data, const
static
BOOL
opentype_layout_mark_set_covers
(
const
struct
scriptshaping_cache
*
cache
,
unsigned
int
set_index
,
UINT16
glyph
)
{
unsigned
int
format
,
offset
=
cache
->
gdef
.
markglyphsetdef
,
coverage_offset
,
set_
count
;
unsigned
int
format
,
offset
=
cache
->
gdef
.
markglyphsetdef
,
coverage_offset
,
count
;
if
(
!
offset
)
return
FALSE
;
...
...
@@ -3771,11 +3778,12 @@ static BOOL opentype_layout_mark_set_covers(const struct scriptshaping_cache *ca
if
(
format
==
1
)
{
set_count
=
table_read_be_word
(
&
cache
->
gdef
.
table
,
offset
+
2
);
if
(
!
set_count
||
set_index
>=
set_
count
)
count
=
table_read_be_word
(
&
cache
->
gdef
.
table
,
offset
+
FIELD_OFFSET
(
struct
ot_gdef_markglyphsets
,
count
)
);
if
(
!
count
||
set_index
>=
count
)
return
FALSE
;
coverage_offset
=
table_read_be_dword
(
&
cache
->
gdef
.
table
,
offset
+
2
+
set_index
*
sizeof
(
coverage_offset
));
coverage_offset
=
table_read_be_dword
(
&
cache
->
gdef
.
table
,
offset
+
FIELD_OFFSET
(
struct
ot_gdef_markglyphsets
,
offsets
[
set_index
]));
return
opentype_layout_is_glyph_covered
(
&
cache
->
gdef
.
table
,
offset
+
coverage_offset
,
glyph
)
!=
GLYPH_NOT_COVERED
;
}
else
...
...
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