Font size, display resoultion in Gimp

Discussion in 'GIMP for Mac' started by lisanet, Sep 15, 2008.

  1. lisanet

    lisanet Member

    Joined:
    Sep 15, 2008
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    16
    For some historical reasons X11 sets its internal display resolution to 75 dpi. AFAIK all current Mac computers use displays with a far more better resolution than 75dpi. E.g. my 21'' iMac's display has 96 dpi.

    Now, if we choose to set fonts in X11 applications, like Gimp, this will have some unwanted side effects. Mac OS X system font is Lucida Grande 10. If we set this font in Gimp.app's gtkrc it will really look tiny. Then why don't set the font size in gtkrc to something like 12 or 13? This will look nearly as tall as OS X own font size. But what if you put Gimp.app on a MacBook? My MacBook has a display resoultion of 113 dpi. So this will result again in tiny fonts. Now, what shall we do? Simply change the resolution X11 uses internally.

    I found an article on macoshints.com about changing display resolution in X11.
    http://www.macosxhints.com/article.php? ... 1201901244

    This way it's possible to set the font in Gimp.app's gtkrc to 'LucidaGrande 10'. Combined with the correct dpi setting for your display panel, the font size Gimp uses should look like the OS X system font.

    This topic was discussed on the XQuartz mailing list too. I don't know if they changed the way X11 detects the correct dpi, but it will do no harm if you modify your 'startx' on your own.
  2. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Interesting, though not being on leopard (yet) I wouldn't risk modifying our launch script blindy without being able to try it. Do you have a patch to our build script? Otherwise, I'll just wait until I get my new computer and take a look at it then.
  3. lisanet

    lisanet Member

    Joined:
    Sep 15, 2008
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    16
    This is not a patch to Gimp.app.

    The change goes to the startup of the X server. The current X11.app (as released by the XQuartz project) runs '/usr/X11/bin/startx'. You have to change the dpi setting there.

    The only change which will be in Gimp.app is to use "Lucida Grande 10" as default font in the various gtkrc files.
  4. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16
    Ok good to know. Then we should definitely make sure to let the XQuartz team know about this, so it can be fixed
  5. lisanet

    lisanet Member

    Joined:
    Sep 15, 2008
    Messages:
    221
    Likes Received:
    0
    Trophy Points:
    16
  6. Auria

    Auria Member

    Joined:
    Mar 16, 2008
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    16

Share This Page