aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Font.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/Font.hh')
-rw-r--r--src/FbTk/Font.hh19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/FbTk/Font.hh b/src/FbTk/Font.hh
index d299848..f6742cb 100644
--- a/src/FbTk/Font.hh
+++ b/src/FbTk/Font.hh
@@ -40,8 +40,6 @@
40 40
41namespace FbTk { 41namespace FbTk {
42 42
43void fontInit();
44
45class FontImp; 43class FontImp;
46class FbDrawable; 44class FbDrawable;
47 45
@@ -51,6 +49,19 @@ class FbDrawable;
51class Font { 49class Font {
52public: 50public:
53 51
52 /// called at FbTk::App creation time, initializes some stuff
53 static void init();
54
55 /// called at FbTk::App destruction time, cleans up what was inited first
56 static void shutdown();
57
58 /// @return true if multibyte is enabled, else false
59 static bool multibyte() { return m_multibyte; }
60 /// @return true if utf-8 mode is enabled, else false
61 static bool utf8() { return m_utf8mode; }
62
63
64
54 Font(const char *name=0, bool antialias = false); 65 Font(const char *name=0, bool antialias = false);
55 virtual ~Font(); 66 virtual ~Font();
56 /** 67 /**
@@ -60,10 +71,6 @@ public:
60 */ 71 */
61 bool load(const std::string &name); 72 bool load(const std::string &name);
62 73
63 /// @return true if multibyte is enabled, else false
64 static bool multibyte() { return m_multibyte; }
65 /// @return true if utf-8 mode is enabled, else false
66 static bool utf8() { return m_utf8mode; }
67 void setAntialias(bool flag); 74 void setAntialias(bool flag);
68 inline void setShadow(bool flag) { m_shadow = flag; if (m_shadow) setHalo(false); } 75 inline void setShadow(bool flag) { m_shadow = flag; if (m_shadow) setHalo(false); }
69 inline void setHalo(bool flag) { m_halo = flag; if (m_halo) setShadow(false); } 76 inline void setHalo(bool flag) { m_halo = flag; if (m_halo) setShadow(false); }