Bug 173648 - xorg-x11-xfs returns wrong DPI fonts
xorg-x11-xfs returns wrong DPI fonts
Product: Fedora
Classification: Fedora
Component: xorg-x11-xfs (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: X/OpenGL Maintenance List
Depends On:
Blocks: xorg-modular
  Show dependency treegraph
Reported: 2005-11-18 15:00 EST by Bill Nottingham
Modified: 2014-03-16 22:56 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-11-23 19:34:34 EST
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 Bill Nottingham 2005-11-18 15:00:33 EST
Description of problem:

xfs is returning a 100dpi font when it should, theoretically, return a 75dpi font.

Net result: GTK 1.x apps are huuuuuuuuuge.

Version-Release number of selected component (if applicable):


How reproducible:

Every time.

My configs are as follows:


style "default-text" {
       fontset = "-*-helvetica-medium-r-normal--*-120-*-*-p-*-*-*"

fs config:

catalogue = /usr/X11R6/lib/X11/fonts/korean,
# in 12 points, decipoints
default-point-size = 120

# 100 x 100 and 75 x 75
default-resolutions = 75,75,100,100


screen #0:
  dimensions:    1400x1050 pixels (474x356 millimeters)
  resolution:    75x75 dots per inch

However, xfs is returning, for the above gtk font:


instead of the expected:


Hence, apps are fairly large.
Comment 1 Bill Nottingham 2005-11-18 15:07:56 EST
$ xlsfonts | grep "helvetica-medium-r-normal" | grep 120

also implies that it would return 75 dpi first.
Comment 2 Mike A. Harris 2005-11-22 23:45:27 EST
This is probably a side effect of bug #173453.  A new version of libfontenc
and xorg-x11-font-utils will be in rawhide soon to be tested, however you
may need to reinstall all of the font packages, or remove all of the
fonts.dir files from the font directories, and restart the xfs initscript,
which will recreate them.
Comment 3 Mike A. Harris 2005-11-23 10:36:40 EST
um..  I pasted the wrong bug ID into the last comment, and bugzilla
magically turned it into a hyperlinked bug alias, and makes the
sentence confusing.  argh.

It's a side effect of the "mkfontscale/mkfontdir" does not work bug, which
was a bug in libfontenc fixed last night.  Installing the new packages wont
"fix" the problem though.  The font directories need to have the fonts.*
files regenerated, either by uninstalling and reinstalling them all,
by upgrading all fonts to new packages, or by removing all fonts.{dir,scale}
files from the system, and doing:

service restart xfs

This requires a restart of the X server too.
Comment 4 Bill Nottingham 2005-11-23 19:34:34 EST
Appears to be fixed with libfontenc-0.99.2-2, and the restart mechanism mentioned.

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