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
41cba1dc
Commit
41cba1dc
authored
Nov 06, 2018
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 06, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Update line breaking logic with Unicode 11.0.0 changes.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c296a21c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
analyzer.c
dlls/dwrite/analyzer.c
+2
-3
No files found.
dlls/dwrite/analyzer.c
View file @
41cba1dc
...
...
@@ -517,7 +517,7 @@ static HRESULT analyze_linebreaks(const WCHAR *text, UINT32 count, DWRITE_LINE_B
{
switch
(
break_class
[
i
])
{
/* LB7 - do not break before spaces */
/* LB7 - do not break before spaces
or zero-width space
*/
case
b_SP
:
set_break_condition
(
i
,
BreakConditionBefore
,
DWRITE_BREAK_CONDITION_MAY_NOT_BREAK
,
&
state
);
break
;
...
...
@@ -531,9 +531,8 @@ static HRESULT analyze_linebreaks(const WCHAR *text, UINT32 count, DWRITE_LINE_B
if
(
j
<
count
-
1
&&
break_class
[
j
+
1
]
!=
b_ZW
)
set_break_condition
(
j
,
BreakConditionAfter
,
DWRITE_BREAK_CONDITION_CAN_BREAK
,
&
state
);
break
;
/* LB8a - do not break
between ZWJ and an ideograph, emoji base or emoji modifier
*/
/* LB8a - do not break
after ZWJ
*/
case
b_ZWJ
:
if
(
i
<
count
-
1
&&
(
break_class
[
i
+
1
]
==
b_ID
||
break_class
[
i
+
1
]
==
b_EB
||
break_class
[
i
+
1
]
==
b_EM
))
set_break_condition
(
i
,
BreakConditionAfter
,
DWRITE_BREAK_CONDITION_MAY_NOT_BREAK
,
&
state
);
break
;
}
...
...
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