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
a42a9940
Commit
a42a9940
authored
Apr 05, 2017
by
Nikolay Sivov
Committed by
Alexandre Julliard
Apr 05, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Classify direction control characters as complex.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7fae2485
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
analyzer.c
dlls/dwrite/analyzer.c
+3
-1
analyzer.c
dlls/dwrite/tests/analyzer.c
+7
-1
No files found.
dlls/dwrite/analyzer.c
View file @
a42a9940
...
@@ -1524,7 +1524,9 @@ static HRESULT WINAPI dwritetextanalyzer1_GetScriptProperties(IDWriteTextAnalyze
...
@@ -1524,7 +1524,9 @@ static HRESULT WINAPI dwritetextanalyzer1_GetScriptProperties(IDWriteTextAnalyze
static
inline
BOOL
is_char_from_simple_script
(
WCHAR
c
)
static
inline
BOOL
is_char_from_simple_script
(
WCHAR
c
)
{
{
if
(
IS_HIGH_SURROGATE
(
c
)
||
IS_LOW_SURROGATE
(
c
))
if
(
IS_HIGH_SURROGATE
(
c
)
||
IS_LOW_SURROGATE
(
c
)
||
/* LRM, RLM, LRE, RLE, PDF, LRO, RLO */
c
==
0x200e
||
c
==
0x200f
||
(
c
>=
0x202a
&&
c
<=
0x202e
))
return
FALSE
;
return
FALSE
;
else
{
else
{
UINT16
script
=
get_char_script
(
c
);
UINT16
script
=
get_char_script
(
c
);
...
...
dlls/dwrite/tests/analyzer.c
View file @
a42a9940
...
@@ -1197,7 +1197,13 @@ static const struct textcomplexity_test textcomplexity_tests[] = {
...
@@ -1197,7 +1197,13 @@ static const struct textcomplexity_test textcomplexity_tests[] = {
{
{
0x610
,
0x610
,
'C'
,
'D'
,
0
},
2
,
FALSE
,
2
},
{
{
0x610
,
0x610
,
'C'
,
'D'
,
0
},
2
,
FALSE
,
2
},
{
{
0xd800
,
'A'
,
'B'
,
0
},
1
,
FALSE
,
1
},
{
{
0xd800
,
'A'
,
'B'
,
0
},
1
,
FALSE
,
1
},
{
{
0xd800
,
'A'
,
'B'
,
0
},
2
,
FALSE
,
1
},
{
{
0xd800
,
'A'
,
'B'
,
0
},
2
,
FALSE
,
1
},
{
{
0xdc00
,
'A'
,
'B'
,
0
},
2
,
FALSE
,
1
}
{
{
0xdc00
,
'A'
,
'B'
,
0
},
2
,
FALSE
,
1
},
{
{
0x202a
,
'A'
,
0x202c
,
0
},
3
,
FALSE
,
1
},
{
{
0x200e
,
'A'
,
0
},
2
,
FALSE
,
1
},
{
{
0x200f
,
'A'
,
0
},
2
,
FALSE
,
1
},
{
{
0x202d
,
'A'
,
0
},
2
,
FALSE
,
1
},
{
{
0x202e
,
'A'
,
0
},
2
,
FALSE
,
1
},
};
};
static
void
test_GetTextComplexity
(
void
)
static
void
test_GetTextComplexity
(
void
)
...
...
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