[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#35119: Font size depends on X server DPI value
From:       Linus Torvalds <torvalds () transmeta ! com>
Date:       2001-11-30 18:50:21
[Download RAW message or body]


Some further updates, after talking with Keith Packard about font sizes..

The XFT truetype engine will only use the X server DPI value if there is
no specific X resource for Xft.dpi.

So you can actually more easily test out different DPI values by just
changing that value in your .Xdefaults file, and re-doing

	.. change .Xdefaults to have ..
	Xft.dpi=300

	xrdb -merge .Xdefaults

which makes testing a lot easier (no need to re-start the X server, and
your desktop can look sane while you test other values of the dpi
setting).

While testing this, I actually seem to have found another bug: starting
off with a DPI of 75, and then doing the above with a DPI setting of 300,
and trying to just start kword, kword will silently just exit with no
error message and no window ever popping up. Changing the DPI back to 75
makes kword happy again..

Other KDE apps, like konqueror, work ok (even if the fonts are obviously
really really BIG in the KDE widgets when you tell KDE you have a 300dpi
display). So it doesn't seem to be a generic qt/kde bug,

Maybe kword gets upset when Xft uses a DPI value of 300, while the X
server DPI query returns 75. Basically kword should only care about the
Xft-reported size, methinks.

		Linus

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic