GIMP for Mac

Font size, display resoultion in Gimp

Installation and Mac OS specific issues.

Font size, display resoultion in Gimp

Postby lisanet » Mon Sep 15, 2008 7:44 pm

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.
Members don't see the above ad. Register now - it's free!
Enjoy GIMP on your Mac ...

... GIMP on OS X - http://gimp.lisanet.de
lisanet
Full Member
 
Posts: 221
Joined: Mon Sep 15, 2008 10:56 am

Re: Font size, display resoultion in Gimp

Postby Auria » Mon Sep 15, 2008 11:48 pm

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.
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: Font size, display resoultion in Gimp

Postby lisanet » Tue Sep 16, 2008 5:48 pm

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.
Enjoy GIMP on your Mac ...

... GIMP on OS X - http://gimp.lisanet.de
lisanet
Full Member
 
Posts: 221
Joined: Mon Sep 15, 2008 10:56 am

Re: Font size, display resoultion in Gimp

Postby Auria » Tue Sep 16, 2008 7:49 pm

Ok good to know. Then we should definitely make sure to let the XQuartz team know about this, so it can be fixed
User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm

Re: Font size, display resoultion in Gimp

Postby lisanet » Tue Sep 16, 2008 11:05 pm

Enjoy GIMP on your Mac ...

... GIMP on OS X - http://gimp.lisanet.de
lisanet
Full Member
 
Posts: 221
Joined: Mon Sep 15, 2008 10:56 am

Re: Font size, display resoultion in Gimp

Postby Auria » Tue Sep 16, 2008 11:14 pm

User avatar
Auria
Retired Staff
 
Posts: 479
Joined: Sun Mar 16, 2008 9:07 pm


Return to GIMP for Mac

Who is online

Users browsing this forum: No registered users and 3 guests