- if (lyxerr.debugging()) {
- if (!Lgb_bug_find_hack)
- lyxerr << "text not called from "
- "workarea::workhandler\n";
- lyxerr << "Painter drawable: " << drawable << endl;
- }
-
- GC gc = getGCForeground(f.realColor());
- XSetFont(display, gc, f.getFontID());
- XDrawString(display, drawable, gc, x, y, s.c_str(), s.length());
- underline(f, x, y, this->width(s, f));
- return *this;
-}
-
-
-Painter & Painter::text(int x, int y, char const * s, int ls,
- LyXFont const & f)
-{
- if (lyxerr.debugging()) {
- if (!Lgb_bug_find_hack)
- lyxerr << "text not called from "
- "workarea::workhandler\n";
- lyxerr << "Painter drawable: " << drawable << endl;
- }
-
- GC gc = getGCForeground(f.realColor());
- XSetFont(display, gc, f.getFontID());
- XDrawString(display, drawable, gc, x, y, s, ls);
- underline(f, x, y, this->width(s, ls, f));
- return *this;