Request-pull print with no dive profile

Lubomir I. Ivanov neolit123 at gmail.com
Sun Sep 2 09:46:10 PDT 2012


On 29 August 2012 09:08, Henrik Brautaset Aronsen
<subsurface at henrik.synth.no> wrote:
>
> The table printout has very tiny fonts on MacOSX, by the way:
> http://db.tt/fcnYFk3V
>

looking at the GTK source for print operations there are a couple of
OS abstractions here - "unix" and "windows", which means OSX and linux
probably are treated the same way.
OSX may not be able to work with GTK_UNIT_POINTS (1) at all or it
could be some bug in a specific GTK version.

a solution is to attempt to get the DPI before printing and scale the
fonts on OSX, which will end as an approximation:
pt = 72 * (px / dpi).

another one is to give GTK_UNIT_MM or _INCH a shot as these seem the
most portable (?), but will also require some scaling in print.c.

lubomir
--


More information about the subsurface mailing list