#include "frontends/Painter.h"
-#include "frontends/Application.h"
-#include "frontends/FontLoader.h"
#include "frontends/FontMetrics.h"
#include "LColor.h"
int ascent;
int descent;
- FontMetrics const & fm = theApp->fontLoader().metrics(font);
+ FontMetrics const & fm = theFontMetrics(font);
fm.rectText(str, width, ascent, descent);
if (back != LColor::none)
int ascent;
int descent;
- FontMetrics const & fm = theApp->fontLoader().metrics(font);
+ FontMetrics const & fm = theFontMetrics(font);
fm.buttonText(str, width, ascent, descent);
button(x, y - ascent, width, descent + ascent);
void Painter::underline(LyXFont const & f, int x, int y, int width)
{
- FontMetrics const & fm = theApp->fontLoader().metrics(f);
+ FontMetrics const & fm = theFontMetrics(f);
int const below = max(fm.maxDescent() / 2, 2);
int const height = max((fm.maxDescent() / 4) - 1, 1);