diff dwtest.c @ 1146:9d97610b2140

Adding dw_pixmap_set_font() which is equivalent to dw_window_set_font() except for pixmaps. When drawing to pixmaps, normally the font is obtained from the associated window handle. This will allow overriding of the font for this pixmap, and will allow setting fonts on pixmaps that don't have associated window handles. This commit has the Mac support. Other platforms coming in the next hour.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 11 Sep 2011 21:36:07 +0000
parents 88cc189b5e56
children 58b5374355ab
line wrap: on
line diff
--- a/dwtest.c	Sun Sep 11 20:52:44 2011 +0000
+++ b/dwtest.c	Sun Sep 11 21:36:07 2011 +0000
@@ -380,6 +380,7 @@
 
 int DWSIGNAL draw_page(HPRINT print, HPIXMAP pixmap, int page_num, void *data)
 {
+   dw_pixmap_set_font(pixmap, FIXEDFONT);
    draw_shapes(FALSE, pixmap);
    return TRUE;
 }