diff options
Diffstat (limited to 'src/FbTk/XmbFontImp.hh')
-rw-r--r-- | src/FbTk/XmbFontImp.hh | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/FbTk/XmbFontImp.hh b/src/FbTk/XmbFontImp.hh index 62ccafd..4372585 100644 --- a/src/FbTk/XmbFontImp.hh +++ b/src/FbTk/XmbFontImp.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: XmbFontImp.hh,v 1.1 2002/11/26 16:01:28 fluxgen Exp $ | 22 | // $Id: XmbFontImp.hh,v 1.2 2002/12/01 13:42:15 rathnor Exp $ |
23 | 23 | ||
24 | #ifndef FBTK_XMBFONTIMP_HH | 24 | #ifndef FBTK_XMBFONTIMP_HH |
25 | #define FBTK_XMBFONTIMP_HH | 25 | #define FBTK_XMBFONTIMP_HH |
@@ -29,19 +29,19 @@ namespace FbTk { | |||
29 | 29 | ||
30 | class XmbFontImp:public FbTk::FontImp { | 30 | class XmbFontImp:public FbTk::FontImp { |
31 | public: | 31 | public: |
32 | XmbFontImp(const char *fontname, bool utf8); | 32 | XmbFontImp(const char *fontname, bool utf8); |
33 | ~XmbFontImp(); | 33 | ~XmbFontImp(); |
34 | bool load(const std::string &name); | 34 | bool load(const std::string &name); |
35 | virtual void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; | 35 | virtual void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; |
36 | unsigned int textWidth(const char * const text, unsigned int len) const; | 36 | unsigned int textWidth(const char * const text, unsigned int len) const; |
37 | unsigned int height() const; | 37 | unsigned int height() const; |
38 | int ascent() const { return m_setextents ? -m_setextents->max_ink_extent.y : 0; } | 38 | int ascent() const { return m_setextents ? -m_setextents->max_ink_extent.y : 0; } |
39 | int descent() const { return m_setextents ? m_setextents->max_ink_extent.height + m_setextents->max_ink_extent.y : 0; } | 39 | int descent() const { return m_setextents ? m_setextents->max_ink_extent.height + m_setextents->max_ink_extent.y : 0; } |
40 | bool loaded() const { return m_fontset != 0; } | 40 | bool loaded() const { return m_fontset != 0; } |
41 | private: | 41 | private: |
42 | XFontSet m_fontset; | 42 | XFontSet m_fontset; |
43 | XFontSetExtents *m_setextents; | 43 | XFontSetExtents *m_setextents; |
44 | const bool m_utf8mode; | 44 | const bool m_utf8mode; |
45 | }; | 45 | }; |
46 | 46 | ||
47 | }; // end namespace FbTk | 47 | }; // end namespace FbTk |