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
152d1791
Commit
152d1791
authored
Jun 22, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
Jun 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Non modern Indic fonts want blwf applied pre and post base.
parent
1fed1473
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
shape.c
dlls/usp10/shape.c
+10
-4
No files found.
dlls/usp10/shape.c
View file @
152d1791
...
...
@@ -2036,7 +2036,7 @@ static void Apply_Indic_BasicForm(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *ps
static
inline
INT
find_consonant_halant
(
WCHAR
*
pwChars
,
INT
index
,
INT
end
,
lexical_function
lexical
)
{
int
i
=
0
;
while
(
i
+
index
<
end
-
1
&&
!
(
lexical
(
pwChars
[
index
+
i
])
==
lex_Consonant
&&
(
lexical
(
pwChars
[
index
+
i
+
1
])
==
lex_Halant
||
(
index
+
i
<
end
-
2
&&
lexical
(
pwChars
[
index
+
i
+
1
])
==
lex_Nukta
&&
lexical
(
pwChars
[
index
+
i
+
2
]
==
lex_Halant
)))))
while
(
i
+
index
<
end
-
1
&&
!
(
is_consonant
(
lexical
(
pwChars
[
index
+
i
]))
&&
(
lexical
(
pwChars
[
index
+
i
+
1
])
==
lex_Halant
||
(
index
+
i
<
end
-
2
&&
lexical
(
pwChars
[
index
+
i
+
1
])
==
lex_Nukta
&&
lexical
(
pwChars
[
index
+
i
+
2
]
==
lex_Halant
)))))
i
++
;
if
(
index
+
i
<=
end
-
1
)
return
index
+
i
;
...
...
@@ -2044,7 +2044,7 @@ static inline INT find_consonant_halant(WCHAR* pwChars, INT index, INT end, lexi
return
-
1
;
}
static
void
Apply_Indic_
Half
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
WCHAR
*
pwChars
,
INT
cChars
,
IndicSyllable
*
syllable
,
WORD
*
pwOutGlyphs
,
INT
*
pcGlyphs
,
WORD
*
pwLogClust
,
lexical_function
lexical
,
IndicSyllable
*
glyph_index
)
static
void
Apply_Indic_
PreBase
(
HDC
hdc
,
ScriptCache
*
psc
,
SCRIPT_ANALYSIS
*
psa
,
WCHAR
*
pwChars
,
INT
cChars
,
IndicSyllable
*
syllable
,
WORD
*
pwOutGlyphs
,
INT
*
pcGlyphs
,
WORD
*
pwLogClust
,
lexical_function
lexical
,
IndicSyllable
*
glyph_index
,
const
char
*
feature
)
{
INT
index
,
nextIndex
;
INT
count
,
g_offset
;
...
...
@@ -2056,7 +2056,7 @@ static void Apply_Indic_Half(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa, WC
index
=
find_consonant_halant
(
&
pwChars
[
syllable
->
start
],
0
,
count
,
lexical
);
while
(
index
>=
0
&&
index
<
(
glyph_index
->
base
-
glyph_index
->
start
))
{
nextIndex
=
apply_GSUB_feature_to_glyph
(
hdc
,
psa
,
psc
,
pwOutGlyphs
,
index
+
glyph_index
->
start
+
g_offset
,
1
,
pcGlyphs
,
"half"
);
nextIndex
=
apply_GSUB_feature_to_glyph
(
hdc
,
psa
,
psc
,
pwOutGlyphs
,
index
+
glyph_index
->
start
+
g_offset
,
1
,
pcGlyphs
,
feature
);
if
(
nextIndex
>
GSUB_E_NOGLYPH
)
{
UpdateClusters
(
nextIndex
,
*
pcGlyphs
-
prevCount
,
1
,
cChars
,
pwLogClust
);
...
...
@@ -2193,9 +2193,15 @@ static void ShapeIndicSyllables(HDC hdc, ScriptCache *psc, SCRIPT_ANALYSIS *psa,
if
(
pref
)
Apply_Indic_PostBase
(
hdc
,
psc
,
psa
,
pwChars
,
cChars
,
&
syllables
[
c
],
pwOutGlyphs
,
pcGlyphs
,
pwLogClust
,
lexical
,
&
glyph_indexs
,
modern
,
"pref"
);
if
(
blwf
)
{
if
(
!
modern
)
Apply_Indic_PreBase
(
hdc
,
psc
,
psa
,
pwChars
,
cChars
,
&
syllables
[
c
],
pwOutGlyphs
,
pcGlyphs
,
pwLogClust
,
lexical
,
&
glyph_indexs
,
"blwf"
);
Apply_Indic_PostBase
(
hdc
,
psc
,
psa
,
pwChars
,
cChars
,
&
syllables
[
c
],
pwOutGlyphs
,
pcGlyphs
,
pwLogClust
,
lexical
,
&
glyph_indexs
,
modern
,
"blwf"
);
}
if
(
half
)
Apply_Indic_
Half
(
hdc
,
psc
,
psa
,
pwChars
,
cChars
,
&
syllables
[
c
],
pwOutGlyphs
,
pcGlyphs
,
pwLogClust
,
lexical
,
&
glyph_indexs
);
Apply_Indic_
PreBase
(
hdc
,
psc
,
psa
,
pwChars
,
cChars
,
&
syllables
[
c
],
pwOutGlyphs
,
pcGlyphs
,
pwLogClust
,
lexical
,
&
glyph_indexs
,
"half"
);
if
(
pstf
)
{
TRACE
(
"applying feature pstf
\n
"
);
...
...
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