J.C. Roberts schrieb:
On Thursday 22 November 2007, Stefan Dengscherz wrote:
Hello list,
I recently tried to configure the "perfect" font handling (at least
for me) on my OpenBSD desktop system. I want to setup fonts smaller
than a defined size not to be anti-aliased (I'm using ms-corefonts
and want to imitate the windows font- rendering mechanism).
This works perfectly with the font configuration files from PC-BSD.
Setting a corefont in ~/.gtkrc-2.0 also applies my special setting to
GTK widgets.
However, Firefox & Thunderbird seem to ignore the global GTK
settings, the fonts on the GTK widgets in these applications are
_always_ anti-aliased, apart from my defined settings. The fonts in
the html rendering area are rendered exactly as defined in my font
configuration, though.
I've created a screenshot: http://elybis.chaosnet.org/fonts.png
How can I force Firefox & Thunderbird to use my font configuration?
Regards,
If I understand you correctly, the fonts within the displayed web pages
are "correct" according to what you want, but the application user
interface fonts are not.
You want fonts smaller than "X" to not be anti-aliased in the
firefox/thunderbird UI.
NOTE: You stated the reverse of the above, but since anti-aliasing makes
a complete mess of small fonts, I suspect you want the reverse of what
you said, namely disabling anti-aliasing on small fonts.
There are two things you can do to fix the matter:
1.) Over-ride the anti-aliasing in /etc/fonts/fonts.conf (or
~/.fonts.conf) for small fonts (and/or specific font names).
2.) Force specific UI fonts/sizes via the UserChrome.css file for both
firefox and thunderbird.
http://support.zenwalk.org/index.php/topic,132.0.html
Also, you might want to check out "about:config" in the firefox url bar
and look up the "font.antialias.min" setting. This is most likely what
is preventing anti-aliasing on small fonts, but I'm uncertain if it
affects only displayed web pages, or web pages and the UI.
kind regards,
jcr
Hello J.C.,
Thanks for your quick answer.
Have a look at the image I posted; the slashdot site is rendered as I
want it, also the UI in pidgin has the correct font rendering, only
the Firefox UI seems to ignore my settings (fonts are still blurry,
although Firefox uses GTK2 too).
I already set my proper font configuration in /etc/fonts/local.conf
and .gtkrc-2.0. However Firefox UI seems to ignore it completely.
I've already played around with the font settings in about:config, but
they don't seem to affect the UI, just the html rendering engine.
I'll take a look ath the UserChrome.css options maybe there's some
switch to adjust.
Any other hints?
-sd