Skip to content

Selecting font sizes graphics device

2 messages · Crispin Miller, Brian Ripley

#
On Thu, 28 Apr 2005, Crispin Miller wrote:

            
Well, this depends on the graphics device, and none allows you to choose 
the font size of a running window.  You can use cex, but its mapping to 
font sizes may well be piecewise constant.

So I think the best you can do in general is strwidth/height plus 
trial-and-error on its cex argument.  If you have a specific device in 
mind, you can find out the cex+ps -> font size mapping byt reading the 
code or experiment.