Nikolay Sivov : dwrite: Update line breaking logic with Unicode 8.0.0 modifications.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Jan 25 09:27:58 CST 2016
Module: wine
Branch: master
Commit: 10b843bb22fa21e73943a19adb3109d1291899a6
URL: http://source.winehq.org/git/wine.git/?a=commit;h=10b843bb22fa21e73943a19adb3109d1291899a6
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun Jan 24 18:10:59 2016 +0300
dwrite: Update line breaking logic with Unicode 8.0.0 modifications.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/dwrite/analyzer.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/dlls/dwrite/analyzer.c b/dlls/dwrite/analyzer.c
index a55b27f..094fb69 100644
--- a/dlls/dwrite/analyzer.c
+++ b/dlls/dwrite/analyzer.c
@@ -522,8 +522,9 @@ static HRESULT analyze_linebreaks(const WCHAR *text, UINT32 count, DWRITE_LINE_B
case b_BB:
set_break_condition(i, BreakConditionAfter, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, &state);
break;
- /* LB21a */
+ /* LB21a, LB21b */
case b_HL:
+ /* LB21a */
if (i < count-1)
switch (break_class[i+1])
{
@@ -531,6 +532,9 @@ static HRESULT analyze_linebreaks(const WCHAR *text, UINT32 count, DWRITE_LINE_B
case b_BA:
set_break_condition(i+1, BreakConditionAfter, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, &state);
}
+ /* LB21b */
+ if (i > 0 && break_class[i-1] == b_SY)
+ set_break_condition(i, BreakConditionBefore, DWRITE_BREAK_CONDITION_MAY_NOT_BREAK, &state);
break;
/* LB22 */
case b_IN:
@@ -540,6 +544,7 @@ static HRESULT analyze_linebreaks(const WCHAR *text, UINT32 count, DWRITE_LINE_B
{
case b_AL:
case b_HL:
+ case b_EX:
case b_ID:
case b_IN:
case b_NU:
More information about the wine-cvs
mailing list