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
8c0e5483
Commit
8c0e5483
authored
Aug 12, 2010
by
Aric Stewart
Committed by
Alexandre Julliard
Aug 16, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Factor out script ranges in an more expandable way.
parent
ebc0de1e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
139 additions
and
88 deletions
+139
-88
shape.c
dlls/usp10/shape.c
+5
-2
usp10.c
dlls/usp10/usp10.c
+125
-80
usp10_internal.h
dlls/usp10/usp10_internal.h
+9
-6
No files found.
dlls/usp10/shape.c
View file @
8c0e5483
...
...
@@ -655,6 +655,8 @@ static const char* get_opentype_script(HDC hdc, SCRIPT_ANALYSIS *psa)
switch
(
psa
->
eScript
)
{
case
Script_Arabic
:
case
Script_Persian
:
case
Script_Arabic_Numeric
:
return
"arab"
;
case
Script_Syriac
:
return
"syrc"
;
...
...
@@ -663,7 +665,6 @@ static const char* get_opentype_script(HDC hdc, SCRIPT_ANALYSIS *psa)
case
Script_Latin
:
case
Script_Numeric
:
case
Script_CR
:
case
Script_LF
:
return
"latn"
;
}
...
...
@@ -834,7 +835,9 @@ void SHAPE_ShapeArabicGlyphs(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, WC
INT
dirR
,
dirL
;
int
i
;
if
(
psa
->
eScript
!=
Script_Arabic
)
if
(
psa
->
eScript
!=
Script_Arabic
&&
psa
->
eScript
!=
Script_Persian
&&
psa
->
eScript
!=
Script_Arabic_Numeric
)
return
;
if
(
*
pcGlyphs
!=
cChars
)
...
...
dlls/usp10/usp10.c
View file @
8c0e5483
This diff is collapsed.
Click to expand it.
dlls/usp10/usp10_internal.h
View file @
8c0e5483
...
...
@@ -19,13 +19,16 @@
*
*/
#define Script_Syriac 8
#define Script_Hebrew 7
#define Script_Arabic 6
#define Script_Latin 1
#define Script_Numeric 5
#define Script_CR 22
#define Script_LF 23
#define Script_CR 2
#define Script_Numeric 3
#define Script_Control 4
#define Script_Punctuation 5
#define Script_Arabic 6
#define Script_Arabic_Numeric 7
#define Script_Hebrew 8
#define Script_Syriac 9
#define Script_Persian 10
#define GLYPH_BLOCK_SHIFT 8
#define GLYPH_BLOCK_SIZE (1UL << GLYPH_BLOCK_SHIFT)
...
...
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