Bug 10489 - Automatic addition of Truetype fonts don't work.
Automatic addition of Truetype fonts don't work.
Product: Red Hat Linux
Classification: Retired
Component: XFree86 (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Preston Brown
Depends On:
  Show dependency treegraph
Reported: 2000-03-31 13:40 EST by Terje Røsten
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-05-30 12:58:47 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Terje Røsten 2000-03-31 13:40:51 EST
If you add a truetype font to a directory with truetype fonts
an restart xfs, the new font will not be added to the fonts.dir file.
The following patch fix this:

--- xfs.old	Fri Mar 31 18:24:23 2000
+++ xfs	Fri Mar 31 18:19:15 2000
@@ -28,7 +28,7 @@
 			if test $NEEDED = yes; then
 				rm -f fonts.dir &>/dev/null
-				if test "x`ls |egrep --ignore-case -v '\.ttf$|^fonts\.'`" != x; then
+				if test "x`ls |egrep --ignore-case -v '\.ttf$|^fonts|^encodings\.'`"
!= x; then
 					# This directory contains fonts that are not TrueType...

 					mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings \
Comment 1 Preston Brown 2000-05-30 12:58:59 EDT
thanks for the fixup, this will be included in an X errata release coming out
this week.

Note You need to log in before you can comment on or make changes to this bug.