On Fri, 7 Jun 2002, Zane Gilmore wrote:
> This is a weird one.
> I have just installed Redhat 7.3 and since doing that my installation of
> OpenOffice 1.0 has ben all but unusable.
> The fonts for the menus and dialog boxes and buttons etc are this
> extremely weird looking font. I have had a bit of a look around the
> menus to try to find where this might be changed but I can't find
> anything (the almost unreadable menus don't help).
>
> Has anybody else had this problem?
Well ... I haven't have the problem but I suspect it might be
related to the font substitution mechanism.
1. Font substitution is defined in /etc/X11/XftConfig
2. Don't ask me exactly how it works because I don't quite understand it.
3. I grabbed the freely available (as in beer) fonts from Microsoft
for "web developers": verdana, etc.
4. here is the contents of my XftConfig:
dir "/usr/X11R6/lib/X11/fonts/Type1"
dir "/usr/share/fonts/default/TrueType"
dir "/usr/share/fonts/default/Type1"
dir "/usr/share/fonts/ja/TrueType"
dir "/usr/local/Graphics/fonts/Type1"
dir "/usr/local/Graphics/fonts/TrueType"
#
# "subpixel" antialiasing: uncomment only ONE
#
match edit rgba = rgb;
#match edit rgba = bgr;
#match edit rgba = vrgb;
#match edit rgba = vbgr;
#
# alias 'fixed' for 'mono'
#
match any family == "fixed" edit family =+ "mono";
#
# The "standard" default faces
#
match any family == "serif" edit family += "times";
match any family == "sans" edit family += "helvetica";
match any family == "mono" edit family += "courier";
#
# Use the ttf fonts
#
match any family == "Times" edit family += "Times New Roman";
match any family == "Helvetica" edit family += "Arial";
match any family == "Courier" edit family += "Courier New";
match any family == "Lucida" edit family += "Verdana";
#
match any family == "serif" edit family += "Times New Roman";
match any family == "sans" edit family += "Arial";
match any family == "mono" edit family += "Courier New";
#
# Alias between XLFD families and font file family name, prefer local fonts
#
match any family == "charter" edit family += "bitstream charter";
match any family == "bitstream charter" edit family =+ "charter";
#
match any family == "Lucidux Serif" edit family += "LuciduxSerif";
match any family == "LuciduxSerif" edit family =+ "Lucidux Serif";
#
match any family == "Lucidux Sans" edit family += "LuciduxSans";
match any family == "LuciduxSans" edit family =+ "Lucidux Sans";
#
match any family == "Lucidux Mono" edit family += "LuciduxMono";
#
#
# Don't antialias very small and very large fonts
#
match
any size < 8
any size > 20
edit antialias=false;
#
# TrueType font aliases
#
match any family == "Comic Sans" edit family += "Comic Sans MS";
match any family == "Comic Sans MS" edit family =+ "Comic Sans";
match any family == "Trebuchet" edit family += "Trebuchet MS";
match any family == "Trebuchet MS" edit family =+ "Trebuchet";
match any family == "Monotype" edit family =+ "Monotype.com";
match any family == "Andale Mono" edit family += "Monotype.com";
match any family == "Monotype.com" edit family =+ "Andale Mono";
I don't pretend to be the best or even good, it just works for the time being.
5. Be careful how you mess with the font substitution config file.
Cheers,
--
Ryurick M. Hristev mailto:[EMAIL PROTECTED]
Computer Systems Manager
University of Canterbury, Physics & Astronomy Dept., New Zealand