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
342de4c1
Commit
342de4c1
authored
May 23, 2011
by
Aric Stewart
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Update LogClust from glyph properties.
parent
8e8d4be5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
shape.c
dlls/usp10/shape.c
+25
-0
No files found.
dlls/usp10/shape.c
View file @
342de4c1
...
@@ -1026,6 +1026,30 @@ static void GDEF_UpdateGlyphProps(HDC hdc, const WORD *pwGlyphs, const WORD cGly
...
@@ -1026,6 +1026,30 @@ static void GDEF_UpdateGlyphProps(HDC hdc, const WORD *pwGlyphs, const WORD cGly
}
}
}
}
static
void
UpdateClustersFromGlyphProp
(
const
int
cGlyphs
,
const
int
cChars
,
WORD
*
pwLogClust
,
SCRIPT_GLYPHPROP
*
pGlyphProp
)
{
int
i
;
for
(
i
=
0
;
i
<
cGlyphs
;
i
++
)
{
if
(
!
pGlyphProp
[
i
].
sva
.
fClusterStart
)
{
int
j
;
for
(
j
=
0
;
j
<
cChars
;
j
++
)
{
if
(
pwLogClust
[
j
]
==
i
)
{
int
k
=
j
;
while
(
!
pGlyphProp
[
pwLogClust
[
k
]].
sva
.
fClusterStart
&&
k
>=
0
&&
k
<
cChars
)
k
-=
1
;
if
(
pGlyphProp
[
pwLogClust
[
k
]].
sva
.
fClusterStart
)
pwLogClust
[
j
]
=
pwLogClust
[
k
];
}
}
}
}
}
static
void
UpdateClusters
(
int
nextIndex
,
int
changeCount
,
int
write_dir
,
int
chars
,
WORD
*
pwLogClust
)
static
void
UpdateClusters
(
int
nextIndex
,
int
changeCount
,
int
write_dir
,
int
chars
,
WORD
*
pwLogClust
)
{
{
if
(
changeCount
==
0
)
if
(
changeCount
==
0
)
...
@@ -1485,6 +1509,7 @@ static void ShapeCharGlyphProp_Default( HDC hdc, ScriptCache* psc, SCRIPT_ANALYS
...
@@ -1485,6 +1509,7 @@ static void ShapeCharGlyphProp_Default( HDC hdc, ScriptCache* psc, SCRIPT_ANALYS
}
}
GDEF_UpdateGlyphProps
(
hdc
,
pwGlyphs
,
cGlyphs
,
pwLogClust
,
pGlyphProp
);
GDEF_UpdateGlyphProps
(
hdc
,
pwGlyphs
,
cGlyphs
,
pwLogClust
,
pGlyphProp
);
UpdateClustersFromGlyphProp
(
cGlyphs
,
cChars
,
pwLogClust
,
pGlyphProp
);
}
}
void
SHAPE_CharGlyphProp
(
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
)
void
SHAPE_CharGlyphProp
(
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
)
...
...
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