Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1145:9c47a0245872 | 1146:9d97610b2140 |
---|---|
378 } | 378 } |
379 } | 379 } |
380 | 380 |
381 int DWSIGNAL draw_page(HPRINT print, HPIXMAP pixmap, int page_num, void *data) | 381 int DWSIGNAL draw_page(HPRINT print, HPIXMAP pixmap, int page_num, void *data) |
382 { | 382 { |
383 dw_pixmap_set_font(pixmap, FIXEDFONT); | |
383 draw_shapes(FALSE, pixmap); | 384 draw_shapes(FALSE, pixmap); |
384 return TRUE; | 385 return TRUE; |
385 } | 386 } |
386 | 387 |
387 int DWSIGNAL print_callback(HWND window, void *data) | 388 int DWSIGNAL print_callback(HWND window, void *data) |