diff options
Diffstat (limited to 'src/XmbFontImp.hh')
-rw-r--r-- | src/XmbFontImp.hh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/XmbFontImp.hh b/src/XmbFontImp.hh index 64a176f..4fb2a2e 100644 --- a/src/XmbFontImp.hh +++ b/src/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.3 2002/10/16 23:30:17 fluxgen Exp $ | 22 | // $Id: XmbFontImp.hh,v 1.4 2002/10/19 13:58:58 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef XMBFONTIMP_HH | 24 | #ifndef XMBFONTIMP_HH |
25 | #define XMBFONTIMP_HH | 25 | #define XMBFONTIMP_HH |
@@ -34,6 +34,8 @@ public: | |||
34 | virtual void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; | 34 | virtual void drawText(Drawable w, int screen, GC gc, const char *text, size_t len, int x, int y) const; |
35 | unsigned int textWidth(const char * const text, unsigned int len) const; | 35 | unsigned int textWidth(const char * const text, unsigned int len) const; |
36 | unsigned int height() const; | 36 | unsigned int height() const; |
37 | int ascent() const { return m_setextents ? -m_setextents->max_ink_extent.y : 0; } | ||
38 | int descent() const { return m_setextents ? m_setextents->max_ink_extent.height + m_setextents->max_ink_extent.y : 0; } | ||
37 | bool loaded() const { return m_fontset != 0; } | 39 | bool loaded() const { return m_fontset != 0; } |
38 | private: | 40 | private: |
39 | XFontSet m_fontset; | 41 | XFontSet m_fontset; |