Skip to content

Adjust cex to fit width

2 messages · Dario Beraldi, Brian Ripley

#
This does depend on the unstated device.  But on most devices the string 
width is either exactly or approximately proportional to cex.   Some 
devices cannot scale fonts so there is a small set of available sizes: 
in which case you can use uniroot() to find the cex corresponding to the 
closest fit.

Information on which sizes are available is in the device's help page, 
at least for devices provided by the core team.
On 06/05/2013 08:03, Dario Beraldi wrote: