[GRASS-dev] font size in d.legend

Glynn Clements glynn at gclements.plus.com
Wed Jun 29 19:25:47 PDT 2016


Paulo van Breugel wrote:

> I am creating some maps (png format) using the GRASS_RENDER_IMMEDIATE=cairo
> and d.* calls. I am setting width and height based on a final desired
> 300dpi for the output image (i.e., pixels =  # inch x 300).
> 
> However, the font size as can be set in e.g., d.legend is, I assume, based
> on the assumption that the output image has a DPI of 72. Is there any way
> to set the DPI of the output image?

For the cairo driver, I believe that the font size is the size of 1-em
in pixels (the cairo documentation says "user space units"; in the
absence of any additional transformations, I believe that this means
pixels).

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list