#include "language.h"
#include "LColor.h"
#include "xftFontLoader.h"
-#include "frontends/font_metrics.h"
+
+#include "frontends/Application.h"
+#include "frontends/FontMetrics.h"
#include "support/lstrings.h"
x, y,
reinterpret_cast<FcChar32 const *>(s),
ls);
- textwidth = font_metrics::width(s, ls, f);
+ textwidth = theApp->fontLoader().metrics(f).width(s, ls);
} else {
LyXFont smallfont(f);
smallfont.decSize().decSize().setShape(LyXFont::UP_SHAPE);
x + textwidth, y,
reinterpret_cast<FcChar32 *>(&c),
1);
- textwidth += font_metrics::width(c, smallfont);
+ textwidth += theApp->fontLoader().metrics(smallfont).width(c);
} else {
XftDrawString32(draw,
xftClr,
x + textwidth, y,
reinterpret_cast<FcChar32 *>(&c),
1);
- textwidth += font_metrics::width(c, f);
+ textwidth += theApp->fontLoader().metrics(f).width(c);
}
}
}