Some Xorg fonts are ugly (webpages in SeaMonkey)

 
Post new topic   Reply to topic    Lunar-Linux Forum Index -> Installing Lunar
View previous topic :: View next topic  
Author Message
Gb



Joined: 04 Aug 2007
Posts: 8

PostPosted: Sat Aug 04, 2007 12:38 pm    Post subject: Some Xorg fonts are ugly (webpages in SeaMonkey) Reply with quote

Hello,

I am not using KDE, Gnome desktop (only gnome libraries for some programs) or Xfce.

I read the Font_de-uglification_HOWTO, and now in my xorg.conf I have got:

Quote:
# Gb's xorg.conf

Section "Files"
FontPath "/usr/lib/X11/fonts/misc:unscaled"
FontPath "/usr/lib/X11/fonts/100dpi:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi:unscaled"
FontPath "/usr/lib/X11/fonts/TTF"
FontPath "/usr/lib/X11/fonts/OTF"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
EndSection

Section "Module"
Load "extmod"
Load "dbe"
Load "glx"
Load "freetype"
Load "type1"
Load "speedo"
Load "record"
Load "dri"
EndSection


The font order should be optimal to get smooth rendering. All required extensions are loaded too.

But the fonts used for webpages in SeaMonkey are not very smooth.
Maybe I have to change SeaMonkey preferences?
All other fonts in SeaMonkey (such as those used for menus, Preferences window, etc.) are fine.

I need big fonts to read well, so I use a high DPI value: 192 x 192. Maybe that is wrong.

With the intel_drv.so (intel driver), using the DisplaySize entry in xorg.conf doesn't change the DPI (does nothing),
so I have to run startx -- -dpi 192 everytime.
To automate it I tried to make a /etc/X11/xinit/xserverrc file, but that gets ignored too.

To recap, I would like to know how to avoid running startx -- -dpi 192 by hand everytime to set up DPI.

I would also like to know if sub-pixel font rendering (I'm using a 1680x1050 LCD) is enabled by default in Xorg,
or if something like gnome-control-center is needed.

Thank you,
Gb
Back to top
View user's profile Send private message
sofar



Joined: 11 Aug 2005
Posts: 172

PostPosted: Fri Sep 14, 2007 7:21 am    Post subject: Reply with quote

webpages often force sub-optimal fonts on them. Just tell your browser to always use your own fonts instead of the webpage fonts.
Back to top
View user's profile Send private message Send e-mail
Gb



Joined: 04 Aug 2007
Posts: 8

PostPosted: Fri Sep 14, 2007 7:19 pm    Post subject: Reply with quote

Thank you for your reply.

I would like to briefly recap what I actually did to get almost everything to work.
This may be useful to other users.

1. I installed freetype2
2. I installed various TTF from the relevant packages found in lunar.
3. I got hold of some additional TTF fonts from the web.

1. 2. 3. really made a huge difference.

4. I used .Xsession instead of .Xresources. I don't know why
but putting my stuff in .Xsession
instead of .Xresources really did the trick
of automating the "--dpi 192" switch.

5. Mozilla/Firefox/Seamonkey etc.
probably require some manual changes
to the default fonts (and using the
Preferences in the menus doesn't help).
Some sites, such as this Forum, are displayed nicely now via Freetype2.
Some other places force strange fonts,
and the "defaults" substitutes are usually not TTFs, thus ugly.
Experimentation should fix that too.

As for the subpixel rendering, this is the trick:
When defining an X font through an X font definition (look on the web for this beast, there are basically two types, one for TTF and one for the others, but it seems that TTF can be described in the "old" way too),
place:":rgba=rgb" at the end of the string.
That is ok if your LCD uses the red-green-blue order. Other combinations are possible too.

Gb
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Lunar-Linux Forum Index -> Installing Lunar All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group