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
80e30f3d
Commit
80e30f3d
authored
Jan 02, 2007
by
Hans Leidekker
Committed by
Alexandre Julliard
Jan 02, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Implement GetCharWidthI.
parent
b3d018f9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
3 deletions
+37
-3
font.c
dlls/gdi32/font.c
+36
-3
wingdi.h
include/wingdi.h
+1
-0
No files found.
dlls/gdi32/font.c
View file @
80e30f3d
...
...
@@ -3186,11 +3186,44 @@ BOOL WINAPI EnableEUDC(BOOL fEnableEUDC)
/***********************************************************************
* GetCharWidthI (GDI32.@)
*
* Retrieve widths of characters.
*
* PARAMS
* hdc [I] Handle to a device context.
* first [I] First glyph in range to query.
* count [I] Number of glyph indices to query.
* glyphs [I] Array of glyphs to query.
* buffer [O] Buffer to receive character widths.
*
* NOTES
* Only works with TrueType fonts.
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
GetCharWidthI
(
HDC
hdc
,
UINT
giFirst
,
UINT
cgi
,
LPWORD
pgi
,
LPINT
lpB
uffer
)
BOOL
WINAPI
GetCharWidthI
(
HDC
hdc
,
UINT
first
,
UINT
count
,
LPWORD
glyphs
,
LPINT
b
uffer
)
{
FIXME
(
"(%p, %d, %d, %p, %p): stub
\n
"
,
hdc
,
giFirst
,
cgi
,
pgi
,
lpBuffer
);
return
FALSE
;
ABC
*
abc
;
unsigned
int
i
;
TRACE
(
"(%p, %d, %d, %p, %p)
\n
"
,
hdc
,
first
,
count
,
glyphs
,
buffer
);
if
(
!
(
abc
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
ABC
))))
return
FALSE
;
if
(
!
GetCharABCWidthsI
(
hdc
,
first
,
count
,
glyphs
,
abc
))
{
HeapFree
(
GetProcessHeap
(),
0
,
abc
);
return
FALSE
;
}
for
(
i
=
0
;
i
<
count
;
i
++
)
buffer
[
i
]
=
abc
->
abcA
+
abc
->
abcB
+
abc
->
abcC
;
HeapFree
(
GetProcessHeap
(),
0
,
abc
);
return
TRUE
;
}
/***********************************************************************
...
...
include/wingdi.h
View file @
80e30f3d
...
...
@@ -3423,6 +3423,7 @@ BOOL WINAPI GetCharWidth32A(HDC,UINT,UINT,LPINT);
BOOL
WINAPI
GetCharWidth32W
(
HDC
,
UINT
,
UINT
,
LPINT
);
#define GetCharWidth32 WINELIB_NAME_AW(GetCharWidth32)
BOOL
WINAPI
GetCharWidthA
(
HDC
,
UINT
,
UINT
,
LPINT
);
BOOL
WINAPI
GetCharWidthI
(
HDC
,
UINT
,
UINT
,
LPWORD
,
LPINT
);
BOOL
WINAPI
GetCharWidthW
(
HDC
,
UINT
,
UINT
,
LPINT
);
#define GetCharWidth WINELIB_NAME_AW(GetCharWidth)
BOOL
WINAPI
GetCharWidthFloatA
(
HDC
,
UINT
,
UINT
,
PFLOAT
);
...
...
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