Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
91e0f56c
Commit
91e0f56c
authored
Dec 22, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Dec 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add currency scripts to match windows.
parent
70fe8d52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
1 deletion
+33
-1
shape.c
dlls/usp10/shape.c
+3
-0
usp10.c
dlls/usp10/usp10.c
+26
-1
usp10_internal.h
dlls/usp10/usp10_internal.h
+4
-0
No files found.
dlls/usp10/shape.c
View file @
91e0f56c
...
...
@@ -715,6 +715,9 @@ static const ScriptShapeData ShapingData[] =
{{
no_features
,
0
},
NULL
,
"osma"
,
""
,
NULL
,
NULL
},
{{
no_features
,
0
},
NULL
,
"osma"
,
""
,
NULL
,
NULL
},
{{
no_features
,
0
},
NULL
,
"math"
,
""
,
NULL
,
NULL
},
{{
hebrew_features
,
1
},
NULL
,
"hebr"
,
""
,
NULL
,
NULL
},
{{
latin_features
,
2
},
NULL
,
"latn"
,
""
,
NULL
,
NULL
},
{{
thai_features
,
1
},
NULL
,
"thai"
,
""
,
NULL
,
ShapeCharGlyphProp_Thai
},
};
static
INT
GSUB_is_glyph_covered
(
LPCVOID
table
,
UINT
glyph
)
...
...
dlls/usp10/usp10.c
View file @
91e0f56c
...
...
@@ -624,6 +624,18 @@ static const scriptData scriptInformation[] = {
{
0
,
0
,
1
,
0
,
0
,
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
,
0
}},
};
static
const
SCRIPT_PROPERTIES
*
script_props
[]
=
...
...
@@ -667,7 +679,8 @@ static const SCRIPT_PROPERTIES *script_props[] =
&
scriptInformation
[
72
].
props
,
&
scriptInformation
[
73
].
props
,
&
scriptInformation
[
74
].
props
,
&
scriptInformation
[
75
].
props
,
&
scriptInformation
[
76
].
props
,
&
scriptInformation
[
77
].
props
,
&
scriptInformation
[
78
].
props
&
scriptInformation
[
78
].
props
,
&
scriptInformation
[
79
].
props
,
&
scriptInformation
[
80
].
props
,
&
scriptInformation
[
81
].
props
};
typedef
struct
{
...
...
@@ -830,6 +843,18 @@ static WORD get_char_script( LPCWSTR str, INT index, INT end, INT *consumed)
if
(
str
[
index
]
==
0x2212
||
str
[
index
]
==
0x2044
)
return
Script_Punctuation
;
/* Currency Symboles by Unicode point */
switch
(
str
[
index
])
{
case
0x09f2
:
case
0x09f3
:
return
Script_Bengali_Currency
;
case
0x0af1
:
return
Script_Gujarati_Currency
;
case
0x0e3f
:
return
Script_Thai_Currency
;
case
0x20aa
:
return
Script_Hebrew_Currency
;
case
0x20ab
:
return
Script_Vietnamese_Currency
;
case
0xfb29
:
return
Script_Hebrew_Currency
;
}
GetStringTypeW
(
CT_CTYPE1
,
&
str
[
index
],
1
,
&
type
);
if
(
type
==
0
)
...
...
dlls/usp10/usp10_internal.h
View file @
91e0f56c
...
...
@@ -115,6 +115,10 @@
#define Script_Osmanya_Numeric 77
/* Unicode Chapter 15 : Plane 1 */
#define Script_MathAlpha 78
/* Additional Currency Scripts */
#define Script_Hebrew_Currency 79
#define Script_Vietnamese_Currency 80
#define Script_Thai_Currency 81
#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