| GooCanvas Reference Manual |
|---|
WYSIWYG PrintingWYSIWYG Printing — how to use the canvas to create accurate printed output. |
The GooCanvas "resolution-x" and "resolution-y"
properties must be set correctly. They both default to 96dpi, which
corresponds to a typical monitor. To get a more accurate figure you
might be able to use gdk_screen_get_resolution()
The GooCanvas "units" property must be set to one of GTK_UNIT_MMGTK_UNIT_POINTSGTK_UNIT_INCHGTK_UNIT_PIXEL
Absolute font sizes must be used (to prevent the fonts being mistakenly scaled by Pango as well as by GooCanvas). To specify absolute font sizes add "px" after the font size, e.g. instead of "Sans 9" use "Sans 9px".
Font sizes must be converted to the units used by the canvas.
For example, if a 9 point "Sans" font is desired but "units"
is set to GTK_UNIT_MM