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
df2c8a25
Commit
df2c8a25
authored
Feb 18, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 19, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
usp10: Implement ScriptGetLogicalWidths.
parent
275dbeb7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
1 deletion
+33
-1
usp10.c
dlls/usp10/usp10.c
+32
-0
usp10.spec
dlls/usp10/usp10.spec
+1
-1
No files found.
dlls/usp10/usp10.c
View file @
df2c8a25
...
@@ -1682,3 +1682,35 @@ HRESULT WINAPI ScriptStringGetOrder(SCRIPT_STRING_ANALYSIS ssa, UINT *order)
...
@@ -1682,3 +1682,35 @@ HRESULT WINAPI ScriptStringGetOrder(SCRIPT_STRING_ANALYSIS ssa, UINT *order)
return
S_OK
;
return
S_OK
;
}
}
/***********************************************************************
* ScriptGetLogicalWidths (USP10.@)
*
* Convert advance widths to logical widths.
*
* PARAMS
* sa [I] Script analysis.
* nbchars [I] Number of characters.
* nbglyphs [I] Number of glyphs.
* glyph_width [I] Array of glyph widths.
* log_clust [I] Array of logical clusters.
* sva [I] Visual attributes.
* widths [O] Array of logical widths.
*
* RETURNS
* Success: S_OK
* Failure: a non-zero HRESULT.
*/
HRESULT
WINAPI
ScriptGetLogicalWidths
(
const
SCRIPT_ANALYSIS
*
sa
,
int
nbchars
,
int
nbglyphs
,
const
int
*
glyph_width
,
const
WORD
*
log_clust
,
const
SCRIPT_VISATTR
*
sva
,
int
*
widths
)
{
int
i
;
TRACE
(
"(%p, %d, %d, %p, %p, %p, %p)
\n
"
,
sa
,
nbchars
,
nbglyphs
,
glyph_width
,
log_clust
,
sva
,
widths
);
/* FIXME */
for
(
i
=
0
;
i
<
nbchars
;
i
++
)
widths
[
i
]
=
glyph_width
[
i
];
return
S_OK
;
}
dlls/usp10/usp10.spec
View file @
df2c8a25
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
@ stdcall ScriptGetCMap(ptr ptr ptr long long ptr)
@ stdcall ScriptGetCMap(ptr ptr ptr long long ptr)
@ stdcall ScriptGetFontProperties(long ptr ptr)
@ stdcall ScriptGetFontProperties(long ptr ptr)
@ stdcall ScriptGetGlyphABCWidth(ptr ptr long ptr)
@ stdcall ScriptGetGlyphABCWidth(ptr ptr long ptr)
@ st
ub ScriptGetLogicalWidths
@ st
dcall ScriptGetLogicalWidths(ptr long long ptr ptr ptr ptr)
@ stdcall ScriptGetProperties(ptr long)
@ stdcall ScriptGetProperties(ptr long)
@ stdcall ScriptIsComplex(wstr long long)
@ stdcall ScriptIsComplex(wstr long long)
@ stdcall ScriptItemize(wstr long long ptr ptr ptr ptr)
@ stdcall ScriptItemize(wstr long long ptr ptr ptr ptr)
...
...
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