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
2259e44e
Commit
2259e44e
authored
Aug 15, 1999
by
Juergen Schmied
Committed by
Alexandre Julliard
Aug 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First implementation of GetCharacterPlacementA.
parent
03a6889e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
3 deletions
+39
-3
font.c
objects/font.c
+39
-3
No files found.
objects/font.c
View file @
2259e44e
...
...
@@ -1536,15 +1536,51 @@ DWORD WINAPI GetFontData(HDC hdc, DWORD table, DWORD offset,
/*************************************************************************
* GetCharacterPlacementA [GDI32.160]
*
* NOTES:
* the web browser control of ie4 calls this with dwFlags=0
*/
DWORD
WINAPI
GetCharacterPlacementA
(
HDC
hdc
,
LPCSTR
lpString
,
INT
uCount
,
INT
nMaxExtent
,
GCP_RESULTSA
*
lpResults
,
DWORD
dwFlags
)
{
/* return value 0 is correct for most cases anyway */
FIXME_
(
font
)(
":stub!
\n
"
);
return
0
;
DWORD
ret
=
0
;
SIZE
size
;
TRACE_
(
font
)(
"%s 0x%08x 0x%08x 0x%08lx:stub!
\n
"
,
debugstr_a
(
lpString
),
uCount
,
nMaxExtent
,
dwFlags
);
TRACE_
(
font
)(
"lpOrder=%p lpDx=%p lpCaretPos=%p lpClass=%p lpOutString=%p lpGlyphs=%p
\n
"
,
lpResults
->
lpOrder
,
lpResults
->
lpDx
,
lpResults
->
lpCaretPos
,
lpResults
->
lpClass
,
lpResults
->
lpOutString
,
lpResults
->
lpGlyphs
);
if
(
dwFlags
)
FIXME_
(
font
)(
"flags 0x%08lx ignored
\n
"
,
dwFlags
);
if
(
lpResults
->
lpOrder
)
FIXME_
(
font
)(
"reordering not implemented
\n
"
);
if
(
lpResults
->
lpCaretPos
)
FIXME_
(
font
)(
"caret positions not implemented
\n
"
);
if
(
lpResults
->
lpClass
)
FIXME_
(
font
)(
"classes not implemented
\n
"
);
if
(
lpResults
->
lpGlyphs
)
FIXME_
(
font
)(
"glyphs not implemented
\n
"
);
/* copy will do if the GCP_REORDER flag is not set */
if
(
lpResults
->
lpOutString
)
{
lstrcpynA
(
lpResults
->
lpOutString
,
lpString
,
uCount
);
}
if
(
lpResults
->
lpDx
)
{
int
i
,
c
;
for
(
i
=
0
;
i
<
uCount
;
i
++
)
{
if
(
GetCharWidth32A
(
hdc
,
lpString
[
i
],
lpString
[
i
],
&
c
))
lpResults
->
lpDx
[
i
]
=
c
;
}
}
if
(
GetTextExtentPoint32A
(
hdc
,
lpString
,
uCount
,
&
size
))
ret
=
MAKELONG
(
size
.
cx
,
size
.
cy
);
return
ret
;
}
/*************************************************************************
...
...
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