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
1cfdeeec
Commit
1cfdeeec
authored
Mar 01, 2001
by
Ian Pilcher
Committed by
Alexandre Julliard
Mar 01, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squash another AFM character metrics parsing bug.
parent
f5242405
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
afm.c
dlls/wineps/afm.c
+10
-10
No files found.
dlls/wineps/afm.c
View file @
1cfdeeec
...
...
@@ -43,15 +43,17 @@ static void PSDRV_AFMGetCharMetrics(AFM *afm, FILE *fp)
afm
->
NumofMetrics
*
sizeof
(
AFMMETRICS
)
);
for
(
i
=
0
;
i
<
afm
->
NumofMetrics
;
i
++
,
metric
++
)
{
if
(
!
fgets
(
line
,
sizeof
(
line
),
fp
))
{
ERR
(
"Unexpected EOF
\n
"
);
return
;
}
cp
=
line
+
strlen
(
line
);
do
{
*
cp
=
'\0'
;
cp
--
;
}
while
(
cp
>=
line
&&
isspace
(
*
cp
));
if
(
!
fgets
(
line
,
sizeof
(
line
),
fp
))
{
ERR
(
"Unexpected EOF
\n
"
);
return
;
}
cp
=
line
+
strlen
(
line
);
do
{
*
cp
=
'\0'
;
cp
--
;
}
while
(
cp
>=
line
&&
isspace
(
*
cp
));
}
while
(
!
(
*
line
));
curpos
=
line
;
while
(
*
curpos
)
{
...
...
@@ -103,11 +105,9 @@ static void PSDRV_AFMGetCharMetrics(AFM *afm, FILE *fp)
curpos
=
endpos
+
1
;
}
#if 0
TRACE
(
"Metrics for '%s' WX = %f B = %f,%f - %f,%f
\n
"
,
metric
->
N
,
metric
->
WX
,
metric
->
B
.
llx
,
metric
->
B
.
lly
,
metric
->
B
.
urx
,
metric
->
B
.
ury
);
#endif
}
return
;
...
...
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