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
8df64b85
Commit
8df64b85
authored
Jan 24, 2013
by
Aric Stewart
Committed by
Alexandre Julliard
Jan 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add ShapeCharGlyphProp_Latin to properly handle zero width character properties for Latin.
parent
b233d205
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
shape.c
dlls/usp10/shape.c
+18
-6
No files found.
dlls/usp10/shape.c
View file @
8df64b85
...
...
@@ -64,6 +64,7 @@ static void ContextualShape_Mongolian(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS
typedef
VOID
(
*
ShapeCharGlyphPropProc
)(
HDC
,
ScriptCache
*
,
SCRIPT_ANALYSIS
*
,
const
WCHAR
*
,
const
INT
,
const
WORD
*
,
const
INT
,
WORD
*
,
SCRIPT_CHARPROP
*
,
SCRIPT_GLYPHPROP
*
);
static
void
ShapeCharGlyphProp_Default
(
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
const
WCHAR
*
pwcChars
,
const
INT
cChars
,
const
WORD
*
pwGlyphs
,
const
INT
cGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProp
,
SCRIPT_GLYPHPROP
*
pGlyphProp
);
static
void
ShapeCharGlyphProp_Latin
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
const
WCHAR
*
pwcChars
,
const
INT
cChars
,
const
WORD
*
pwGlyphs
,
const
INT
cGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProp
,
SCRIPT_GLYPHPROP
*
pGlyphProp
);
static
void
ShapeCharGlyphProp_Arabic
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
const
WCHAR
*
pwcChars
,
const
INT
cChars
,
const
WORD
*
pwGlyphs
,
const
INT
cGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProp
,
SCRIPT_GLYPHPROP
*
pGlyphProp
);
static
void
ShapeCharGlyphProp_Hebrew
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
const
WCHAR
*
pwcChars
,
const
INT
cChars
,
const
WORD
*
pwGlyphs
,
const
INT
cGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProp
,
SCRIPT_GLYPHPROP
*
pGlyphProp
);
static
void
ShapeCharGlyphProp_Thai
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
const
WCHAR
*
pwcChars
,
const
INT
cChars
,
const
WORD
*
pwGlyphs
,
const
INT
cGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProp
,
SCRIPT_GLYPHPROP
*
pGlyphProp
);
...
...
@@ -453,11 +454,11 @@ typedef struct ScriptShapeDataTag {
static
const
ScriptShapeData
ShapingData
[]
=
{
{{
standard_features
,
2
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
ShapeCharGlyphProp_Latin
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
ShapeCharGlyphProp_Latin
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
ShapeCharGlyphProp_Latin
},
{{
standard_features
,
2
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
ShapeCharGlyphProp_Latin
},
{{
arabic_features
,
6
},
{
arabic_gpos_features
,
4
},
required_arabic_features
,
0
,
ContextualShape_Arabic
,
ShapeCharGlyphProp_Arabic
},
{{
arabic_features
,
6
},
{
arabic_gpos_features
,
4
},
required_arabic_features
,
0
,
ContextualShape_Arabic
,
ShapeCharGlyphProp_Arabic
},
{{
hebrew_features
,
2
},
{
hebrew_gpos_features
,
2
},
NULL
,
0
,
ContextualShape_Hebrew
,
ShapeCharGlyphProp_Hebrew
},
...
...
@@ -497,7 +498,7 @@ static const ScriptShapeData ShapingData[] =
{{
devanagari_features
,
6
},
{
devanagari_gpos_features
,
4
},
required_telugu_features
,
MS_MAKE_TAG
(
'm'
,
'l'
,
'm'
,
'2'
),
ContextualShape_Malayalam
,
ShapeCharGlyphProp_Malayalam
},
{{
devanagari_features
,
6
},
{
devanagari_gpos_features
,
4
},
required_telugu_features
,
MS_MAKE_TAG
(
'm'
,
'l'
,
'm'
,
'2'
),
ContextualShape_Malayalam
,
NULL
},
{{
standard_features
,
2
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
ShapeCharGlyphProp_Latin
},
{{
standard_features
,
2
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
{{
myanmar_features
,
2
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
{{
myanmar_features
,
2
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
...
...
@@ -532,7 +533,7 @@ static const ScriptShapeData ShapingData[] =
{{
NULL
,
0
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
{{
NULL
,
0
},
{
NULL
,
0
},
NULL
,
0
,
NULL
,
NULL
},
{{
hebrew_features
,
2
},
{
hebrew_gpos_features
,
2
},
NULL
,
0
,
ContextualShape_Hebrew
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
NULL
},
{{
latin_features
,
4
},
{
latin_gpos_features
,
3
},
NULL
,
0
,
NULL
,
ShapeCharGlyphProp_Latin
},
{{
thai_features
,
1
},
{
thai_gpos_features
,
3
},
NULL
,
0
,
ContextualShape_Thai
,
ShapeCharGlyphProp_Thai
},
};
...
...
@@ -2831,6 +2832,17 @@ static void ShapeCharGlyphProp_Default( ScriptCache* psc, SCRIPT_ANALYSIS* psa,
UpdateClustersFromGlyphProp
(
cGlyphs
,
cChars
,
pwLogClust
,
pGlyphProp
);
}
static
void
ShapeCharGlyphProp_Latin
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
const
WCHAR
*
pwcChars
,
const
INT
cChars
,
const
WORD
*
pwGlyphs
,
const
INT
cGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProp
,
SCRIPT_GLYPHPROP
*
pGlyphProp
)
{
int
i
;
ShapeCharGlyphProp_Default
(
psc
,
psa
,
pwcChars
,
cChars
,
pwGlyphs
,
cGlyphs
,
pwLogClust
,
pCharProp
,
pGlyphProp
);
for
(
i
=
0
;
i
<
cGlyphs
;
i
++
)
if
(
pGlyphProp
[
i
].
sva
.
fZeroWidth
)
pGlyphProp
[
i
].
sva
.
uJustification
=
SCRIPT_JUSTIFY_NONE
;
}
static
void
ShapeCharGlyphProp_Arabic
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
const
WCHAR
*
pwcChars
,
const
INT
cChars
,
const
WORD
*
pwGlyphs
,
const
INT
cGlyphs
,
WORD
*
pwLogClust
,
SCRIPT_CHARPROP
*
pCharProp
,
SCRIPT_GLYPHPROP
*
pGlyphProp
)
{
int
i
,
k
;
...
...
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