Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I use WingIDE for Python development and it runs under X Windows. The X11 font rendering is driving me crazy. Are there any tricks for getting better fonts in an X Server on MacOS / Lion? Sample image here. It's not so bad that I'd say it's broken, but the hinting, subpixel rendering, etc all just doesn't look nearly as nice in the X server as it does in MacOS native.

I've installed XQuartz 2.7.0 binaries by hand and didn't notice any improvement in font rendering. I also tried copying Menlo.ttc into my ~/.fonts directory to have a nicer font than the X windows fonts but it's clear the X font renderer just can't match MacOS native. This 2005 OpenOffice tips article recommends replacing libfreetype but it's a pretty awkward process I haven't tried given the age of the instructions.

share|improve this question
1  
I put a 100 point bounty on this question and didn't get a solid answer. I suspect the answer to my question is "no". The X11 community does work on improving font rendering (ie, for Ubuntu) and maybe their work could be used on a Mac as well. –  Nelson Jan 27 '12 at 16:31
    
I am very interested about the subject, X11 apps on Mac are looking like ****. The only thing a found so far was wiki.archlinux.org/index.php/X_resources - but that's only a start point and not an answer. –  sorin Aug 14 '13 at 9:41

2 Answers 2

It has been a long time since I've dealt with X11, so all I can contribute are general principals. But since no one else is posting...

From the Mac OS perspective, everything X11 does is just bitmaps. Mac OS never sees the fonts that X is displaying.

So what you really want is to improve the font rendering within X11 itself. This FAQ may help. You might do better in a more general unix forum.

share|improve this answer
    
Please summarize or excerpt the relevant parts of the article you linked to in the answer. The idea is to make the answer stand alone in case something happens to the linked page. –  Nathan Greenstein Jan 19 '12 at 21:51
    
Thanks, I appreciate the attempt to help my poor question. You're probably right about needing a more general Unix forum; I should see the current state of Ubuntu rendering. BTW that linked FAQ is from 2002; things have improved considerably since then. –  Nelson Jan 21 '12 at 19:54

Warning: this is not my final answer, it will take some time to provide a better one.

Tested on OS X 10.8.5 with XQuartz 2.7.4 (xorg-server 1.13.0) and:

  • meld - installed via brew install meld
  • xterm
  • xclock

To tune the fonts create a file ~/.Xresources and put this:

Xft.dpi:        96
Xft.antialias:  true
Xft.hinting:    true
Xft.autohint:   true
Xft.rgba:       rgb
Xft.hintstyle:  hintfull

XTerm*faceName: DejaVu Sans Mono
*faceName: DejaVu Sans Mono

Inside ~/.gtkrc-2.0:

style "user-font" {
    font_name = "Lucida Grande 10"
}
widget_class "*" style "user-font"

gtk-font-name="Lucida Grande 10"
gtk-enable-mnemonics = 0

Feel free to post your modifications, as long they are using standard Fonts available on OS X, I would like to make this drop-in recipe.

The last file has an effect on meld and other gtk apps.

Note, the font is the same as the one used in OS X UI but the rendering is still a little bit different.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.