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
f6e40961
Commit
f6e40961
authored
Jul 15, 2000
by
Drew Ronneberg
Committed by
Alexandre Julliard
Jul 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore broken fonts when building cache file.
parent
72b93d47
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
1 deletion
+40
-1
xfont.c
graphics/x11drv/xfont.c
+40
-1
No files found.
graphics/x11drv/xfont.c
View file @
f6e40961
...
...
@@ -1821,6 +1821,7 @@ static int XFONT_BuildMetrics(char** x_pattern, int res, unsigned x_checksum, in
{
int
i
;
fontInfo
*
fi
=
NULL
;
fontResource
*
fr
,
*
pfr
;
int
n_ff
=
0
;
MESSAGE
(
"Building font metrics. This may take some time...
\n
"
);
...
...
@@ -1828,7 +1829,6 @@ static int XFONT_BuildMetrics(char** x_pattern, int res, unsigned x_checksum, in
{
char
*
typeface
;
LFD
*
lfd
;
fontResource
*
fr
,
*
pfr
;
int
j
;
char
buffer
[
MAX_LFD_LENGTH
];
char
*
lpstr
;
...
...
@@ -1940,6 +1940,45 @@ static int XFONT_BuildMetrics(char** x_pattern, int res, unsigned x_checksum, in
}
if
(
fi
)
HeapFree
(
GetProcessHeap
(),
0
,
fi
);
/* Scan through the font list and remove FontResorce(s) (fr)
* that have no associated Fontinfo(s) (fi).
* This code is necessary because XFONT_ReadCachedMetrics
* assumes that there is at least one fi associated with a fr.
* This assumption is invalid for TT font
* -altsys-ms outlook-medium-r-normal--0-0-0-0-p-0-microsoft-symbol.
*/
fr
=
fontList
;
while
(
!
fr
->
fi_count
)
{
fontList
=
fr
->
next
;
HeapFree
(
GetProcessHeap
(),
0
,
fr
->
resource
);
HeapFree
(
GetProcessHeap
(),
0
,
fr
);
fr
=
fontList
;
n_ff
--
;
}
fr
=
fontList
;
while
(
fr
->
next
)
{
if
(
!
fr
->
next
->
fi_count
)
{
pfr
=
fr
->
next
;
fr
->
next
=
fr
->
next
->
next
;
HeapFree
(
GetProcessHeap
(),
0
,
pfr
->
resource
);
HeapFree
(
GetProcessHeap
(),
0
,
pfr
);
n_ff
--
;
}
else
fr
=
fr
->
next
;
}
return
n_ff
;
}
...
...
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