#define XFT_FONT_LOADER_H
#include "lyxfont.h"
-#include "support/std_string.h"
+
+#include <gtkmm.h>
#include <X11/Xft/Xft.h>
class GWorkArea;
LyXFont::FONT_SHAPE shape,
LyXFont::FONT_SIZE size)
{
- if (fonts_[family][series][shape][size])
- return fonts_[family][series][shape][size];
- else
+ if (fonts_[family][series][shape][size])
+ return fonts_[family][series][shape][size];
+ else
return doLoad(family, series, shape, size);
- }
+ }
+
bool isSpecial(LyXFont const & f)
{
switch (f.family()) {
LyXFont::FONT_SERIES series,
LyXFont::FONT_SHAPE shape,
LyXFont::FONT_SIZE size);
- string familyString(LyXFont::FONT_FAMILY family);
+ std::string familyString(LyXFont::FONT_FAMILY family);
/// Reset font handler
void reset();
/** Does the actual loading of a font. Updates fontstruct. */
XftFont * doLoad(LyXFont::FONT_FAMILY family,
- LyXFont::FONT_SERIES series,
- LyXFont::FONT_SHAPE shape,
- LyXFont::FONT_SIZE size);
+ LyXFont::FONT_SERIES series,
+ LyXFont::FONT_SHAPE shape,
+ LyXFont::FONT_SIZE size);
};
///