Re: X11 and ugly fonts
Re: X11 and ugly fonts
- Subject: Re: X11 and ugly fonts
- From: Alan Curtis <email@hidden>
- Date: Wed, 20 Apr 2005 09:56:02 -0400
On Apr 20, 2005, at 2:45 AM, Bryan Keller wrote:
I have installed X11 on my PowerBook G4 (OS X 10.3.9), and I am
struggling trying to get fonts in X11 apps to look similar to the
fonts in native OS X applications. I have done an exhaustive search on
the web and on this list, and come across other users with the same
issue as me, with no solution.
To boil it down to a simple scenario:
1. Start up Terminal.app and set the font to Courier, size 14.
2. Now start up X11 and xterm and set the font to Courier (xterm -fs
14 -fa Courier)
The xterm window shows a fairly hideous display, the font being
excessively spaced and just plain ugly. Meanwhile, Terminal looks as
pretty as can be.
What am I missing in my setup that could cause this? I tried
installing Fink's "applesystemfonts" package, and adding those fonts
to my font path by putting "xset +fp ..." in my .xinitrc, but that
didn't do anything. I tried setting my font path to only include
TrueType fonts (xset fp ...), and then xterm wouldn't come up at all,
as if TrueType fonts were not even supported.
Any help is appreciated. And if anyone follows steps 1. and 2. above,
and the two windows look similar, please respond, because you are
doing something right!
I was bothered by this too, but I was using Monaco. This is a (sort of)
solution that I use (from an old post on this list).
I created a file called '.fonts.conf' in my home directory with the
following content.
[code]
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!-- ~/.fonts.conf for per-user font configuration -->
<fontconfig>
<match target="pattern" name="family">
<test qual="any" name="family">
<string>Monaco</string>
</test>
<edit name="hinting" mode="assign">
<bool>false</bool>
</edit>
</match>
<match target="font">
<edit name="rgba" mode="assign">
<const>rgb</const>
</edit>
</match>
</fontconfig>
[/code]
the fonts in the windows are now more similar, but still not exactly
the same.
The first part of my .fonts.conf turns off the XFree86 hinting.
The second part turns on sub-pixel sampling which looks good on my LCD
screen.
I don't know why this works.
Alan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden