aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/XFontImp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/XFontImp.cc')
-rw-r--r--src/FbTk/XFontImp.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/XFontImp.cc b/src/FbTk/XFontImp.cc
index 5b61555..eeb0830 100644
--- a/src/FbTk/XFontImp.cc
+++ b/src/FbTk/XFontImp.cc
@@ -79,9 +79,10 @@ bool XFontImp::load(const std::string &fontname) {
79 return true; 79 return true;
80} 80}
81 81
82void XFontImp::drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y) const { 82void XFontImp::drawText(const FbDrawable &w, int screen, GC gc, const char *text, size_t len, int x, int y, FbTk::Orientation orient) const {
83 if (m_fontstruct == 0) 83 if (m_fontstruct == 0)
84 return; 84 return;
85
85 // use roated font functions? 86 // use roated font functions?
86 if (m_rotfont != 0 && m_rotate) { 87 if (m_rotfont != 0 && m_rotate) {
87 drawRotText(w.drawable(), screen, gc, text, len, x, y); 88 drawRotText(w.drawable(), screen, gc, text, len, x, y);
@@ -110,7 +111,7 @@ unsigned int XFontImp::height() const {
110 return m_fontstruct->ascent + m_fontstruct->descent; 111 return m_fontstruct->ascent + m_fontstruct->descent;
111} 112}
112 113
113void XFontImp::rotate(float angle) { 114void XFontImp::rotate(int angle) {
114 //we must have a font loaded before we rotate 115 //we must have a font loaded before we rotate
115 if (m_fontstruct == 0 || m_fontstruct->per_char == 0) 116 if (m_fontstruct == 0 || m_fontstruct->per_char == 0)
116 return; 117 return;