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
7e02e2e9
Commit
7e02e2e9
authored
May 06, 2020
by
Nikolay Sivov
Committed by
Alexandre Julliard
May 06, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Update DWRITE_SHAPING_TEXT_PROPERTIES definition.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1726b7f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
analyzer.c
dlls/dwrite/analyzer.c
+3
-4
dwrite.idl
include/dwrite.idl
+3
-1
No files found.
dlls/dwrite/analyzer.c
View file @
7e02e2e9
...
...
@@ -1178,6 +1178,9 @@ static HRESULT WINAPI dwritetextanalyzer_GetGlyphs(IDWriteTextAnalyzer2 *iface,
method
=
get_number_substitutes
(
substitution
,
digits
);
/* FIXME: have the shaping engine set this */
memset
(
text_props
,
0
,
length
*
sizeof
(
*
text_props
));
for
(
i
=
0
;
i
<
length
;
i
++
)
{
/* FIXME: set to better values */
glyph_props
[
i
].
justification
=
text
[
i
]
==
' '
?
SCRIPT_JUSTIFY_BLANK
:
SCRIPT_JUSTIFY_CHARACTER
;
...
...
@@ -1186,10 +1189,6 @@ static HRESULT WINAPI dwritetextanalyzer_GetGlyphs(IDWriteTextAnalyzer2 *iface,
glyph_props
[
i
].
isZeroWidthSpace
=
0
;
glyph_props
[
i
].
reserved
=
0
;
/* FIXME: have the shaping engine set this */
text_props
[
i
].
isShapedAlone
=
0
;
text_props
[
i
].
reserved
=
0
;
clustermap
[
i
]
=
i
;
string
[
i
]
=
text
[
i
];
...
...
include/dwrite.idl
View file @
7e02e2e9
...
...
@@ -546,7 +546,9 @@ typedef struct DWRITE_TYPOGRAPHIC_FEATURES
typedef
struct
DWRITE_SHAPING_TEXT_PROPERTIES
{
UINT16
isShapedAlone
:
1
;
UINT16
reserved
:
15
;
UINT16
reserved1
:
1
;
UINT16
canBreakShapingAfter
:
1
;
UINT16
reserved
:
13
;
}
DWRITE_SHAPING_TEXT_PROPERTIES
;
typedef
struct
DWRITE_SHAPING_GLYPH_PROPERTIES
...
...
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