sysadminforum
Go Back   sysadminforum > Usenet Gateway > linux.* > linux.debian.* > linux.debian.user.*
Reload this Page X, dpi and fonts
Reply
 
Thread Tools Display Modes
Old 09-02-2006, 03:40 AM   #1
_T_
Guest
 
Posts: n/a
Default X, dpi and fonts

Hi

Several questions about X and dpi:

- How can I determine the dpi of current X session?

- Is there any relation between X dpi and font selection?

- How does X map font request such as
'-*-lucidatypewriter-medium-r-*-*-*-100-*-*-*-*-*-*' to actual font name?

I think for the '-*-lucidatypewriter-medium-r-*-*-*-100-*-*-*-*-*-*'
font request, my xorg 6.9 chooses
'-b&h-lucidatypewriter-medium-r-normal-sans-10-100-75-75-m-60-iso10646-1'.

In my xorg 7.0, I think it chooses
-b&h-lucidatypewriter-medium-r-normal-sans-14-100-100-100-m-80-iso10646-1

Is there any way that I can tell it for sure?

These are my '-*-lucidatypewriter-medium-r-*-*-*-100-*-*-*-*-*-*' fonts in
my xorg 7.0:

$ xlsfonts | grep -- -lucidatypewriter-medium-r-.*100
-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-0-0-100-100-m-0-iso8859-1
-b&h-lucidatypewriter-medium-r-normal-sans-10-100-75-75-m-60-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-10-100-75-75-m-60-iso8859-1
-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso8859-1
-b&h-lucidatypewriter-medium-r-normal-sans-14-100-100-100-m-80-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-14-100-100-100-m-80-iso8859-1
-b&h-lucidatypewriter-medium-r-normal-sans-17-120-100-100-m-100-iso10646-1
-b&h-lucidatypewriter-medium-r-normal-sans-17-120-100-100-m-100-iso8859-1
-b&h-lucidatypewriter-medium-r-normal-sans-20-140-100-100-m-120-iso10646-1
[...]

Why X (xorg7.0) choose 14-100-100, instead of 11-80-100-100, or
10-100-75-75 fonts?

thanks

tong



__________________

? Contact
  Reply With Quote
Old 09-02-2006, 07:50 AM   #2
Andrei Popescu
Guest
 
Posts: n/a
Default Re: X, dpi and fonts

T <> wrote:

> - How can I determine the dpi of current X session?

xdpyinfo

HTH
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

__________________
? Contact
  Reply With Quote
Old 09-02-2006, 01:50 PM   #3
Andrei Popescu
Guest
 
Posts: n/a
Default Re: X, dpi and fonts

T <> wrote:

> On Sat, 02 Sep 2006 10:45:15 +0300, Andrei Popescu wrote:
>
> > T <> wrote:
> >
> >> - How can I determine the dpi of current X session?
> >
> > xdpyinfo
>
> thanks but, then what?
>
> Do you mean:
>
> screen #0:
> print screen: no
> dimensions: 1152x864 pixels (293x219 millimeters)
> resolution: 100x100 dots per inch
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> ?
>
> How about the other question?
>
> thanks

Sorry, out of my league. I don't understand fonts either. But I thought
my answer could bring you more then just a step closer.

Regards,
Andrei
--
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

__________________
? Contact
  Reply With Quote
Old 09-02-2006, 02:00 PM   #4
_T_
Guest
 
Posts: n/a
Default Re: X, dpi and fonts

On Sat, 02 Sep 2006 10:45:15 +0300, Andrei Popescu wrote:

> T <> wrote:
>
>> - How can I determine the dpi of current X session?
>
> xdpyinfo

thanks but, then what?

Do you mean:

screen #0:
print screen: no
dimensions: 1152x864 pixels (293x219 millimeters)
resolution: 100x100 dots per inch
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

?

How about the other question?

thanks



__________________

? Contact
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off

Forum Jump



© 2004 - 2009 sysadminforum.com