diff options
Diffstat (limited to 'graphics/font.h')
-rw-r--r-- | graphics/font.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/font.h b/graphics/font.h index c67ad1990c..54e1bcc8e0 100644 --- a/graphics/font.h +++ b/graphics/font.h @@ -116,6 +116,18 @@ public: virtual void drawChar(Surface *dst, byte chr, int x, int y, uint32 color) const; }; +#if (defined(PALMOS_ARM) || defined(PALMOS_DEBUG)) +# define DEFINE_FONT(n) \ + const NewFont *n; \ + void create_##n() { \ + n = new NewFont(desc); \ + } + +# define INIT_FONT(n) \ + extern void create_##n(); \ + create_##n(); +#endif + } // End of namespace Graphics #endif |