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
d4784a92
Commit
d4784a92
authored
Feb 17, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Fix character range to glyph range matching for user features.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d3b1c12
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
opentype.c
dlls/dwrite/opentype.c
+4
-1
No files found.
dlls/dwrite/opentype.c
View file @
d4784a92
...
...
@@ -4733,7 +4733,7 @@ static void opentype_layout_get_glyph_range_for_text(struct scriptshaping_contex
if
(
end_char
>=
context
->
length
-
1
)
*
end_glyph
=
context
->
glyph_count
-
1
;
else
*
end_glyph
=
context
->
u
.
buffer
.
clustermap
[
end_char
+
1
]
-
1
;
*
end_glyph
=
context
->
u
.
buffer
.
clustermap
[
end_char
]
-
1
;
}
static
void
opentype_layout_set_glyph_masks
(
struct
scriptshaping_context
*
context
,
const
struct
shaping_features
*
features
)
...
...
@@ -4754,6 +4754,9 @@ static void opentype_layout_set_glyph_masks(struct scriptshaping_context *contex
if
(
start_char
>=
context
->
length
)
break
;
if
(
!
context
->
user_features
.
range_lengths
[
r
])
continue
;
opentype_layout_get_glyph_range_for_text
(
context
,
start_char
,
start_char
+
context
->
user_features
.
range_lengths
[
r
],
&
start_glyph
,
&
end_glyph
);
start_char
+=
context
->
user_features
.
range_lengths
[
r
];
...
...
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