9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: marius a. eriksen <marius@monkey.org>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] p9p on Retina Macs
Date: Thu,  5 Sep 2013 20:32:42 -0700	[thread overview]
Message-ID: <3874A7DD-47F1-4320-9DB6-E9E34D22FB3D@monkey.org> (raw)
In-Reply-To: <CAKzdPgxqv-kbJd9Ft_aoJXbOuK=x1K8YZUTX1TZfD9vSOfqoww@mail.gmail.com>

Thanks for the pointers.

I finally did some sleuthing and experimentation.

Indeed, devdraw now knows about a display’s DPI, and launching a devdraw app with environment devdrawretina=1 enables detection of retina displays, and setting the current DPI accordingly.

DPI seems to affect a few things:

1. computing geometries of fixed-sized UI elements like scroll bars
2. computing scroll “ticks”

⌘-R toggles the current DPI from “retina” (220 DPI) to “non-retina” (110 DPI).

There doesn’t seem to be any sort of built-in font scaling at the moment. So when you launch, say, acme on a retina machine, you’ll have to supply your own (larger) font. I ended up using fontsrv with system fonts:

	% devdrawretina=1 acme -f /mnt/font/HelveticaNeue-Medium/24a/font -F /mnt/font/Menlo-Regular/22a/font 

seems to work pretty well.

-m.




  reply	other threads:[~2013-09-06  3:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-16 17:05 marius eriksen
2013-08-16 21:35 ` Rob Pike
2013-09-06  3:32   ` marius a. eriksen [this message]
2013-09-06  4:14     ` Russ Cox
2013-09-06  4:18       ` marius eriksen
2013-09-06 11:24       ` James A. Robinson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3874A7DD-47F1-4320-9DB6-E9E34D22FB3D@monkey.org \
    --to=marius@monkey.org \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).