[Top][All Lists]

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

Re: [XForms] Fonts used by Xforms on recent Fedora

From: Jens Thoms Toerring
Subject: Re: [XForms] Fonts used by Xforms on recent Fedora
Date: Thu, 6 May 2010 19:01:49 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

Hi Serge,

On Thu, May 06, 2010 at 11:43:57AM -0400, Serge Bromow wrote:
> Yes indeed this is a problem that has plagued me for some time. It
> would appear that we Fedora folk are the victims of cruel font joke.
> Take a look at "http://www,dineamix.ca/xforms";. These images show
> the different font rendering in Fedora 5 vs Ubuntu 10.4 which uses
> the same font handling method as Fedora 10 and forward.
> Obviously they are not the same size and they create havoc with
> applications being ported to various operating system (see last
> pictures).
> In my case I use RedHat 7.3 and Fedora 5 operating systems and both
> use the font server approach. In the "/etc/X11/fs/config" file show
> here note that the 75 dpi font is listed before the 100 dpi and the
> 75dpi is favoured in the default-resolution statement.
> //--------------------------------------------------
> catalogue = /usr/share/X11/fonts/misc:unscaled,
>        /usr/share/X11/fonts/75dpi:unscaled,
>        /usr/share/X11/fonts/100dpi:unscaled,
>        /usr/share/X11/fonts/Type1,
>        /usr/share/fonts/default/Type1,
>        /usr/share/fonts/msttcorefonts,
> # 100 x 100 and 75 x 75
> default-resolutions = 75,75,100,100
> // --------------------------------------------------
> So a call for Helvetica/Courier/Times  fonts returns the 75dpi font
> first and all is well on our screens.
> Simply adding the font server package (xfs) can fix the problem in
> the Fedora 10 and on. Simply ensure the 75dpi fonts are specified
> before the 100dpi.

Do you see any way I could do something to ease the pain a bit? One
way might be to try to figure out the prefered font resolution and
put it into the query for the fonts, similar to what you proposed
to do manually with

> you can edit the "forms-source/lib/fonts.c" file and change the
> entries below to force 75dpi.

That wouldn't be a big deal once one knows which is the correct
font resolution for the system. Currently the library tries to
figure out the screen resolution (in lib/flresources.c around
line 1155). Now I could use that for a guess for the appropriate
font resolution. "Interesting" are corner cases when the screen
resolution is near to the middle between 75 and 100 dpi - which
font resolution do I prefer then?

All comments (or better ideas) will be appreciated;-)

                           Best regards, Jens
  \   Jens Thoms Toerring  ________      address@hidden
   \_______________________________      http://toerring.de

reply via email to

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