Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
5259c1a1
Commit
5259c1a1
authored
Jul 25, 2022
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 25, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use correct ranges to set DWRITE_SCRIPT_SHAPES_NO_VISUAL.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
parent
dcb8094a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
5 deletions
+21
-5
analyzer.c
dlls/dwrite/analyzer.c
+21
-5
No files found.
dlls/dwrite/analyzer.c
View file @
5259c1a1
...
...
@@ -501,15 +501,31 @@ static inline UINT16 get_char_script(WCHAR c)
return
script
==
Script_Inherited
?
Script_Unknown
:
script
;
}
static
DWRITE_SCRIPT_ANALYSIS
get_char_sa
(
WCHAR
c
)
static
DWRITE_SCRIPT_ANALYSIS
get_char_sa
(
UINT32
c
)
{
DWRITE_SCRIPT_ANALYSIS
sa
;
WORD
type
;
GetStringTypeW
(
CT_CTYPE1
,
&
c
,
1
,
&
type
);
sa
.
script
=
get_char_script
(
c
);
sa
.
shapes
=
(
type
&
C1_CNTRL
)
||
c
==
0x2028
/* LINE SEPARATOR */
||
c
==
0x2029
/* PARAGRAPH SEPARATOR */
?
DWRITE_SCRIPT_SHAPES_NO_VISUAL
:
DWRITE_SCRIPT_SHAPES_DEFAULT
;
sa
.
shapes
=
DWRITE_SCRIPT_SHAPES_DEFAULT
;
if
((
c
>=
0x0001
&&
c
<=
0x001f
)
||
(
c
>=
0x007f
&&
c
<=
0x009f
)
||
(
c
==
0x00ad
)
/* SOFT HYPHEN */
||
(
c
>=
0x200b
&&
c
<=
0x200f
)
||
(
c
>=
0x2028
&&
c
<=
0x202e
)
||
(
c
>=
0x2060
&&
c
<=
0x2064
)
||
(
c
>=
0x2066
&&
c
<=
0x206f
)
||
(
c
==
0xfeff
)
||
(
c
==
0xfff9
)
||
(
c
==
0xfffa
)
||
(
c
==
0xfffb
))
{
sa
.
shapes
=
DWRITE_SCRIPT_SHAPES_NO_VISUAL
;
}
else
{
sa
.
shapes
=
DWRITE_SCRIPT_SHAPES_DEFAULT
;
}
return
sa
;
}
...
...
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