From 0af33fc2c57022dba94a64c8fc76d7c0bcb20ca8 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 29 Jun 2000 06:58:19 +0000 Subject: Changed Font class to allow subclassing in PlatWin.cxx. --- include/Platform.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include') 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 -- cgit v1.2.3