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
7d264424
Commit
7d264424
authored
Feb 11, 2021
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite/arabic: Use resolved codepoint for joining types.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b91548d0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
dwrite_private.h
dlls/dwrite/dwrite_private.h
+1
-0
opentype.c
dlls/dwrite/opentype.c
+1
-0
arabic.c
dlls/dwrite/shapers/arabic.c
+3
-3
No files found.
dlls/dwrite/dwrite_private.h
View file @
7d264424
...
...
@@ -521,6 +521,7 @@ struct shaping_glyph_info
int
attach_chain
;
/* Only relevant for isClusterStart glyphs. Indicates text position for this cluster. */
unsigned
int
start_text_idx
;
unsigned
int
codepoint
;
};
struct
shaping_glyph_properties
...
...
dlls/dwrite/opentype.c
View file @
7d264424
...
...
@@ -5949,6 +5949,7 @@ static void opentype_get_nominal_glyphs(struct scriptshaping_context *context, c
if
(
*
context
->
u
.
subst
.
digits
&&
codepoint
>=
'0'
&&
codepoint
<=
'9'
)
codepoint
=
context
->
u
.
subst
.
digits
[
codepoint
-
'0'
];
context
->
glyph_infos
[
g
].
codepoint
=
codepoint
;
context
->
u
.
buffer
.
glyphs
[
g
]
=
font
->
get_glyph
(
context
->
cache
->
context
,
codepoint
);
context
->
u
.
buffer
.
glyph_props
[
g
].
justification
=
SCRIPT_JUSTIFY_CHARACTER
;
opentype_set_subst_glyph_props
(
context
,
g
);
...
...
dlls/dwrite/shapers/arabic.c
View file @
7d264424
...
...
@@ -147,9 +147,9 @@ static void arabic_setup_masks(struct scriptshaping_context *context,
unsigned
int
i
,
prev
=
~
0u
,
state
=
0
;
unsigned
int
masks
[
NUM_FEATURES
];
for
(
i
=
0
;
i
<
context
->
length
;
++
i
)
for
(
i
=
0
;
i
<
context
->
glyph_count
;
++
i
)
{
unsigned
short
this_type
=
arabic_get_joining_type
(
context
->
text
[
i
]
);
unsigned
short
this_type
=
arabic_get_joining_type
(
context
->
glyph_infos
[
i
].
codepoint
);
const
struct
arabic_state_table_entry
*
entry
;
if
(
this_type
==
JOINING_TYPE_T
)
...
...
@@ -173,7 +173,7 @@ static void arabic_setup_masks(struct scriptshaping_context *context,
masks
[
i
]
=
shape_get_feature_1_mask
(
features
,
arabic_features
[
i
]);
/* Unaffected glyphs get action NONE with zero mask. */
for
(
i
=
0
;
i
<
context
->
length
;
++
i
)
for
(
i
=
0
;
i
<
context
->
glyph_count
;
++
i
)
context
->
glyph_infos
[
i
].
mask
|=
masks
[
arabic_get_shaping_action
(
context
,
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