discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slight problem w/ fonts


From: Dan Pascu
Subject: Re: Slight problem w/ fonts
Date: Wed, 9 Jan 2002 01:31:56 +0200 (EET)

On  8 Jan, Nicola Pero wrote:
> 
>> No that's not right. If we are drawing in pixels then that's an 
>> oversight on our part. We should be drawing things to points, just like 
>> in PostScript.  The X server should have all the information necessary 
>> to make this transformation and it should be easy for us to set up the 
>> initial scaling of a window to be correct when it is created.
> 
> The X server knows the DPI of the screen only if you explicitly pass it
> the -dpi option (I don't), otherwise it uses a default which is normally
> wrong.

Actually this is no longer true with the recent XFree86 servers (4.x)
They use ddc and edid to read monitor capabilities and parameters (if
the ddc module is loaded, and your monitor supports this, which should
be no problem unless you have an old 14" monitor. a 2 years old 15"
monitor I have understands very well ddc)

Here is an excerpt from the X server log starting in 1280x1024 (only
the relevant parts):
(II) LoadModule: "ddc"
(II) LoadModule: "vbe"
(II) RADEON(0): Max H-Image Size [cm]: horiz.: 32  vert.: 24
(--) RADEON(0): Virtual size is 1280x1024 (pitch 1280)
(**) RADEON(0): Default mode "1280x1024": 157.5 MHz, 91.1 kHz, 85.0 Hz
(--) RADEON(0): Display dimensions: (32, 24) cm
(--) RADEON(0): DPI set to (101, 108)

and for 1600x1200
(II) LoadModule: "ddc"
(II) LoadModule: "vbe"
(II) RADEON(0): Max H-Image Size [cm]: horiz.: 32  vert.: 24
(--) RADEON(0): Virtual size is 1600x1200 (pitch 1600)
(**) RADEON(0): Default mode "1600x1200": 189.0 MHz, 87.5 kHz, 70.0 Hz
(--) RADEON(0): Display dimensions: (32, 24) cm
(--) RADEON(0): DPI set to (126, 126)

> 
> As an example, my X server thinks my screen is a 75 dpi but I just made
> the computation and found out it's a 98 dpi.

this may be because you still use the 3.3.x XFree86 server, or you
haven't loaded the ddc and vbe modules in your XFree86 4.x server

> 
> Anyway it's ok - if you want to use pseudo-points as the units of
> everything, instead of pixels, then it's Ok - but you should scale all the
> graphics (images included) as well by using the screen assumed dpi - not
> only fonts.  The point I was making (and that I still make) is that
> everything must be scaled in the same way, you can't scale fonts in one
> way and the rest in another way, otherwise it's unusable, as currently is.
> 
> 
> _______________________________________________
> Discuss-gnustep mailing list
> Discuss-gnustep@gnu.org
> http://mail.gnu.org/mailman/listinfo/discuss-gnustep

-- 
Dan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]