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

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


On Fri, 23 Nov 2001, Linus Torvalds wrote:
>
> Updated, and am compiling now to verify that all my problems are gone, but
> it sounds promising.

No, the thing is still broken, although in a different way.

So please don't mark this "done" yet.

Now the font seems to be displayed in the right size, but the distance
between lines and words is done with the wrong metric.

What I did to test was

 - startx -- -dpi 75

	Load Word document in kword:

		kword Justforfun.doc

	everything looks fine

 - startx -- -dpi 150


	Load Word document in kword:

		kword Justforfun.doc

	actual text size looks more-or-less correct, but the spacing
	between words and lines seems to be done with a _much_ larger
	font (wild guess: twice as large ;)

	The problem happens with .kwd files too, I just happen to test
	with the sources for the manuscript for "Just for Fun" (which was
	done on a iMac with Word)

Similar behaviour in KPresenter, although I do get the feeling that some
of the fonts were bigger too. It's hard to tell: my kpresenter
presentations looked so corrupted by just the spacing problem that the
font size issue was not clear.

I note that the window manager itself also reacts badly to "150 dpi", as
it seems to store all font sizes in points. However, that might be
considered a feature, as opposed to the KWord behaviour where you're
supposed to get the same on-screen behaviour regardless of what kind of
display you have.

[ Side note, personal pet peeve, this is NOT a bug: ]

Btw, I also personally think that the "scale window to 'true size'"
approach is horrible, and having "100% scaling" mean that the on-screen
image tries to be the same as the paper size is just silly. I'd rather
have it use pixels than some arbitrary "physical size of the screen"
measure, as a smaller screen just means that I have it closer to my eyes.

You can see this behaviour really clearly by using "startx -- -dpi 300",
and watching kword just blow up the document to a ridiculously large size.
Imagine that you have a really small screen that has a resolution of
1600x1200, and really _is_ 300 dpi - do you really think that the kword
behaviour is "reasonable"?

		Linus

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

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