#include "frontends/FontMetrics.h"
#include "Color.h"
-#include "LyXFont.h"
+#include "Font.h"
using lyx::docstring;
void Painter::rectText(int x, int y,
docstring const & str,
- LyXFont const & font,
+ Font const & font,
Color_color back,
Color_color frame)
{
void Painter::buttonText(int x, int y, docstring const & str,
- LyXFont const & font, bool mouseHover)
+ Font const & font, bool mouseHover)
{
int width;
int ascent;
int Painter::preeditText(int x, int y, char_type c,
- LyXFont const & font, preedit_style style)
+ Font const & font, preedit_style style)
{
- LyXFont temp_font = font;
+ Font temp_font = font;
FontMetrics const & fm = theFontMetrics(font);
int ascent = fm.maxAscent();
int descent = fm.maxDescent();
}
-void Painter::underline(LyXFont const & f, int x, int y, int width)
+void Painter::underline(Font const & f, int x, int y, int width)
{
FontMetrics const & fm = theFontMetrics(f);
}
-void Painter::dashedUnderline(LyXFont const & f, int x, int y, int width)
+void Painter::dashedUnderline(Font const & f, int x, int y, int width)
{
FontMetrics const & fm = theFontMetrics(f);