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
67f0be15
Commit
67f0be15
authored
Apr 23, 2001
by
Marcus Meissner
Committed by
Alexandre Julliard
Apr 23, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented GetCharABCWidths with GetCharWidth.
parent
a0f9e718
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
8 deletions
+28
-8
font.c
objects/font.c
+28
-8
No files found.
objects/font.c
View file @
67f0be15
...
...
@@ -1475,11 +1475,20 @@ BOOL WINAPI GetAspectRatioFilterEx( HDC hdc, LPSIZE pAspectRatio )
BOOL16
WINAPI
GetCharABCWidths16
(
HDC16
hdc
,
UINT16
firstChar
,
UINT16
lastChar
,
LPABC16
abc
)
{
ABC
abc32
;
if
(
!
GetCharABCWidthsA
(
hdc
,
firstChar
,
lastChar
,
&
abc32
))
return
FALSE
;
abc
->
abcA
=
abc32
.
abcA
;
abc
->
abcB
=
abc32
.
abcB
;
abc
->
abcC
=
abc32
.
abcC
;
LPABC
abc32
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
ABC
)
*
(
lastChar
-
firstChar
+
1
));
int
i
;
if
(
!
GetCharABCWidthsA
(
hdc
,
firstChar
,
lastChar
,
abc32
))
{
HeapFree
(
GetProcessHeap
(),
0
,
abc32
);
return
FALSE
;
}
for
(
i
=
firstChar
;
i
<=
lastChar
;
i
++
)
{
abc
[
i
-
firstChar
].
abcA
=
abc32
[
i
-
firstChar
].
abcA
;
abc
[
i
-
firstChar
].
abcB
=
abc32
[
i
-
firstChar
].
abcB
;
abc
[
i
-
firstChar
].
abcC
=
abc32
[
i
-
firstChar
].
abcC
;
}
HeapFree
(
GetProcessHeap
(),
0
,
abc32
);
return
TRUE
;
}
...
...
@@ -1513,9 +1522,20 @@ BOOL WINAPI GetCharABCWidthsA(HDC hdc, UINT firstChar, UINT lastChar,
BOOL
WINAPI
GetCharABCWidthsW
(
HDC
hdc
,
UINT
firstChar
,
UINT
lastChar
,
LPABC
abc
)
{
/* No TrueType fonts in Wine so far */
FIXME
(
"(%04x,%04x,%04x,%p): stub
\n
"
,
hdc
,
firstChar
,
lastChar
,
abc
);
return
FALSE
;
int
i
;
LPINT
widths
=
HeapAlloc
(
GetProcessHeap
(),
0
,(
lastChar
-
firstChar
+
1
)
*
sizeof
(
INT
));
FIXME
(
"(%04x,%04x,%04x,%p), returns slightly bogus values.
\n
"
,
hdc
,
firstChar
,
lastChar
,
abc
);
GetCharWidth32A
(
hdc
,
firstChar
,
lastChar
,
widths
);
for
(
i
=
firstChar
;
i
<=
lastChar
;
i
++
)
{
abc
[
i
-
firstChar
].
abcA
=
0
;
/* left distance */
abc
[
i
-
firstChar
].
abcB
=
widths
[
i
-
firstChar
];
/* width */
abc
[
i
-
firstChar
].
abcC
=
0
;
/* right distance */
}
HeapFree
(
GetProcessHeap
(),
0
,
widths
);
return
TRUE
;
}
...
...
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