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
7208bc40
Commit
7208bc40
authored
May 04, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Initialize GSUB offsets in shaping cache.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b8f1aed6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
dwrite_private.h
dlls/dwrite/dwrite_private.h
+1
-0
opentype.c
dlls/dwrite/opentype.c
+10
-0
shape.c
dlls/dwrite/shape.c
+1
-0
No files found.
dlls/dwrite/dwrite_private.h
View file @
7208bc40
...
...
@@ -448,6 +448,7 @@ struct scriptshaping_cache
void
*
context
;
UINT16
upem
;
struct
ot_gsubgpos_table
gsub
;
struct
ot_gsubgpos_table
gpos
;
struct
...
...
dlls/dwrite/opentype.c
View file @
7208bc40
...
...
@@ -2942,6 +2942,16 @@ DWRITE_CONTAINER_TYPE opentype_analyze_container_type(void const *data, UINT32 d
void
opentype_layout_scriptshaping_cache_init
(
struct
scriptshaping_cache
*
cache
)
{
cache
->
font
->
grab_font_table
(
cache
->
context
,
MS_GSUB_TAG
,
&
cache
->
gsub
.
table
.
data
,
&
cache
->
gsub
.
table
.
size
,
&
cache
->
gsub
.
table
.
context
);
if
(
cache
->
gsub
.
table
.
data
)
{
cache
->
gsub
.
script_list
=
table_read_be_word
(
&
cache
->
gsub
.
table
,
FIELD_OFFSET
(
struct
gpos_gsub_header
,
script_list
));
cache
->
gsub
.
feature_list
=
table_read_be_word
(
&
cache
->
gsub
.
table
,
FIELD_OFFSET
(
struct
gpos_gsub_header
,
feature_list
));
cache
->
gsub
.
lookup_list
=
table_read_be_word
(
&
cache
->
gsub
.
table
,
FIELD_OFFSET
(
struct
gpos_gsub_header
,
lookup_list
));
}
cache
->
font
->
grab_font_table
(
cache
->
context
,
MS_GPOS_TAG
,
&
cache
->
gpos
.
table
.
data
,
&
cache
->
gpos
.
table
.
size
,
&
cache
->
gpos
.
table
.
context
);
...
...
dlls/dwrite/shape.c
View file @
7208bc40
...
...
@@ -52,6 +52,7 @@ void release_scriptshaping_cache(struct scriptshaping_cache *cache)
return
;
cache
->
font
->
release_font_table
(
cache
->
context
,
cache
->
gdef
.
table
.
context
);
cache
->
font
->
release_font_table
(
cache
->
context
,
cache
->
gsub
.
table
.
context
);
cache
->
font
->
release_font_table
(
cache
->
context
,
cache
->
gpos
.
table
.
context
);
heap_free
(
cache
);
}
...
...
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