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
74c2cbee
Commit
74c2cbee
authored
Nov 06, 2001
by
François Gouget
Committed by
Alexandre Julliard
Nov 06, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add traces to help diagnose systematic cached-metrics regeneration
problems.
parent
996028be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
xfont.c
graphics/x11drv/xfont.c
+18
-2
font.c
objects/font.c
+2
-1
No files found.
graphics/x11drv/xfont.c
View file @
74c2cbee
...
...
@@ -2185,9 +2185,17 @@ static BOOL XFONT_ReadCachedMetrics( int fd, int res, unsigned x_checksum, int x
{
if
(
offset
>
length
||
pfi
->
cptable
>=
(
UINT16
)
X11DRV_CPTABLE_COUNT
||
(
int
)(
pfi
->
next
)
!=
j
++
)
goto
fail
;
(
int
)(
pfi
->
next
)
!=
j
++
)
{
TRACE
(
"error: offset=%ld length=%ld cptable=%d pfi->next=%d j=%d
\n
"
,(
long
)
offset
,(
long
)
length
,
pfi
->
cptable
,(
int
)
pfi
->
next
,
j
-
1
);
goto
fail
;
}
if
(
pfi
->
df
.
dfPixHeight
==
0
)
goto
fail
;
if
(
pfi
->
df
.
dfPixHeight
==
0
)
{
TRACE
(
"error: dfPixHeight==0
\n
"
);
goto
fail
;
}
pfi
->
df
.
dfFace
=
pfr
->
lfFaceName
;
if
(
pfi
->
fi_flags
&
FI_SCALABLE
)
...
...
@@ -2225,13 +2233,21 @@ static BOOL XFONT_ReadCachedMetrics( int fd, int res, unsigned x_checksum, int x
lpch
+=
len
;
offset
+=
len
;
if
(
offset
>
length
)
{
TRACE
(
"error: offset=%ld length=%ld
\n
"
,(
long
)
offset
,(
long
)
length
);
goto
fail
;
}
}
close
(
fd
);
return
TRUE
;
}
}
}
else
{
TRACE
(
"Wrong length: %ld!=%ld
\n
"
,(
long
)
length
,(
long
)(
i
+
offset
));
}
}
else
{
TRACE
(
"Checksum (%x vs. %x) or count (%d vs. %d) mismatch
\n
"
,
u
,
x_checksum
,
i
,
x_count
);
}
fail:
if
(
fontList
)
HeapFree
(
GetProcessHeap
(),
0
,
fontList
);
...
...
objects/font.c
View file @
74c2cbee
...
...
@@ -453,9 +453,10 @@ HFONT WINAPI CreateFontIndirectW( const LOGFONTW *plf )
{
memcpy
(
&
fontPtr
->
logfont
,
plf
,
sizeof
(
LOGFONTW
)
);
TRACE
(
"(%ld %ld %ld %ld) %s %s %s => %04x
\n
"
,
TRACE
(
"(%ld %ld %ld %ld
%x
) %s %s %s => %04x
\n
"
,
plf
->
lfHeight
,
plf
->
lfWidth
,
plf
->
lfEscapement
,
plf
->
lfOrientation
,
plf
->
lfPitchAndFamily
,
debugstr_w
(
plf
->
lfFaceName
),
plf
->
lfWeight
>
400
?
"Bold"
:
""
,
plf
->
lfItalic
?
"Italic"
:
""
,
hFont
);
...
...
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