aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Font.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2004-08-10 18:08:37 (GMT)
committerfluxgen <fluxgen>2004-08-10 18:08:37 (GMT)
commitc1b226b7ff828a8190508aafb2735ce0f73d10e7 (patch)
tree9be28fd30ccf817eda02ed97f651a9820ec7a21b /src/FbTk/Font.hh
parent12237ed0db778fecc92e699fd2a190a0c1b3ac79 (diff)
downloadfluxbox_pavel-c1b226b7ff828a8190508aafb2735ce0f73d10e7.zip
fluxbox_pavel-c1b226b7ff828a8190508aafb2735ce0f73d10e7.tar.bz2
adding halo and shadow options to font loading, patch from Mathias Gumz and c. mccreesh (ciaranm)
Diffstat (limited to 'src/FbTk/Font.hh')
-rw-r--r--src/FbTk/Font.hh11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/FbTk/Font.hh b/src/FbTk/Font.hh
index fded0c4..1ac2fe0 100644
--- a/src/FbTk/Font.hh
+++ b/src/FbTk/Font.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22//$Id: Font.hh,v 1.8 2004/08/10 11:22:10 fluxgen Exp $ 22//$Id: Font.hh,v 1.9 2004/08/10 18:08:37 fluxgen Exp $
23 23
24#ifndef FBTK_FONT_HH 24#ifndef FBTK_FONT_HH
25#define FBTK_FONT_HH 25#define FBTK_FONT_HH
@@ -56,7 +56,8 @@ public:
56 /// @return true if utf-8 mode is enabled, else false 56 /// @return true if utf-8 mode is enabled, else false
57 static bool utf8() { return m_utf8mode; } 57 static bool utf8() { return m_utf8mode; }
58 void setAntialias(bool flag); 58 void setAntialias(bool flag);
59 inline void setShadow(bool flag) { m_shadow = flag; } 59 inline void setShadow(bool flag) { m_shadow = flag; if (m_shadow) setHalo(false); }
60 inline void setHalo(bool flag) { m_halo = flag; if (m_halo) setShadow(false); }
60 /** 61 /**
61 @param text text to check size 62 @param text text to check size
62 @param size length of text in bytes 63 @param size length of text in bytes
@@ -92,6 +93,7 @@ public:
92 /// @return rotated angle 93 /// @return rotated angle
93 float angle() const { return m_angle; } 94 float angle() const { return m_angle; }
94 bool shadow() const { return m_shadow; } 95 bool shadow() const { return m_shadow; }
96 bool halo() const { return m_halo; }
95private: 97private:
96 98
97 std::auto_ptr<FontImp> m_fontimp; ///< font implementation 99 std::auto_ptr<FontImp> m_fontimp; ///< font implementation
@@ -102,6 +104,11 @@ private:
102 bool m_rotated; ///< wheter we're rotated or not 104 bool m_rotated; ///< wheter we're rotated or not
103 float m_angle; ///< rotation angle 105 float m_angle; ///< rotation angle
104 bool m_shadow; ///< shadow text 106 bool m_shadow; ///< shadow text
107 std::string m_shadow_color; ///< shadow color
108 int m_shadow_offx; ///< offset y for shadow
109 int m_shadow_offy; ///< offset x for shadow
110 bool m_halo; ///< halo text
111 std::string m_halo_color; ///< halo color
105 std::string m_locale; ///< system encoding 112 std::string m_locale; ///< system encoding
106 iconv_t m_iconv; 113 iconv_t m_iconv;
107}; 114};