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
91f161c8
Commit
91f161c8
authored
Jun 19, 2012
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Add ShapeCharGlyphProp_Hebrew.
parent
8041c9bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
1 deletion
+32
-1
shape.c
dlls/usp10/shape.c
+32
-1
No files found.
dlls/usp10/shape.c
View file @
91f161c8
...
...
@@ -65,6 +65,7 @@ typedef VOID (*ShapeCharGlyphPropProc)( HDC , ScriptCache*, SCRIPT_ANALYSIS*, co
static
void
ShapeCharGlyphProp_Default
(
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
);
static
void
ShapeCharGlyphProp_None
(
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_Tibet
(
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
);
...
...
@@ -398,7 +399,7 @@ static const ScriptShapeData ShapingData[] =
{{
latin_features
,
2
},
NULL
,
0
,
NULL
,
NULL
},
{{
arabic_features
,
6
},
required_arabic_features
,
0
,
ContextualShape_Arabic
,
ShapeCharGlyphProp_Arabic
},
{{
arabic_features
,
6
},
required_arabic_features
,
0
,
ContextualShape_Arabic
,
ShapeCharGlyphProp_Arabic
},
{{
hebrew_features
,
1
},
NULL
,
0
,
ContextualShape_Hebrew
,
NULL
},
{{
hebrew_features
,
1
},
NULL
,
0
,
ContextualShape_Hebrew
,
ShapeCharGlyphProp_Hebrew
},
{{
syriac_features
,
4
},
required_syriac_features
,
0
,
ContextualShape_Syriac
,
ShapeCharGlyphProp_None
},
{{
arabic_features
,
6
},
required_arabic_features
,
0
,
ContextualShape_Arabic
,
ShapeCharGlyphProp_Arabic
},
{{
NULL
,
0
},
NULL
,
0
,
ContextualShape_Thaana
,
ShapeCharGlyphProp_None
},
...
...
@@ -2836,6 +2837,36 @@ static void ShapeCharGlyphProp_Arabic( HDC hdc, ScriptCache *psc, SCRIPT_ANALYSI
HeapFree
(
GetProcessHeap
(),
0
,
spaces
);
}
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
)
{
int
i
,
k
;
for
(
i
=
0
;
i
<
cGlyphs
;
i
++
)
{
int
char_index
[
20
];
int
char_count
=
0
;
k
=
USP10_FindGlyphInLogClust
(
pwLogClust
,
cChars
,
i
);
if
(
k
>=
0
)
{
for
(;
k
<
cChars
&&
pwLogClust
[
k
]
==
i
;
k
++
)
char_index
[
char_count
++
]
=
k
;
}
if
(
char_count
==
0
)
pGlyphProp
[
i
].
sva
.
uJustification
=
SCRIPT_JUSTIFY_NONE
;
else
{
pGlyphProp
[
i
].
sva
.
uJustification
=
SCRIPT_JUSTIFY_CHARACTER
;
if
(
char_count
==
1
&&
pwcChars
[
char_index
[
0
]]
==
0x0020
)
/* space */
pCharProp
[
char_index
[
0
]].
fCanGlyphAlone
=
1
;
}
}
OpenType_GDEF_UpdateGlyphProps
(
hdc
,
psc
,
pwGlyphs
,
cGlyphs
,
pwLogClust
,
cChars
,
pGlyphProp
);
UpdateClustersFromGlyphProp
(
cGlyphs
,
cChars
,
pwLogClust
,
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
)
{
int
i
;
...
...
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