diff options
Diffstat (limited to 'include/Platform.h')
-rw-r--r-- | include/Platform.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/Platform.h b/include/Platform.h index 5a87c64fe..785bc8923 100644 --- a/include/Platform.h +++ b/include/Platform.h @@ -199,6 +199,7 @@ public: }; class Font { +protected: FontID id; #if PLAT_WX int ascent; @@ -208,10 +209,10 @@ class Font { Font &operator=(const Font &) { id=0; return *this; } public: Font(); - ~Font(); + virtual ~Font(); - void Create(const char *faceName, int characterSet, int size, bool bold, bool italic); - void Release(); + virtual void Create(const char *faceName, int characterSet, int size, bool bold, bool italic); + virtual void Release(); FontID GetID() { return id; } // Alias another font - caller guarantees not to Release |