X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FFontLoader.h;h=20fe5b886ec2fffeaa8b8cc3b15f00e963e268e7;hb=e3e6befc543cec4eec00f9e28865230bf347a5fb;hp=497f74598873276dd7cb435e833dd5a70e142c97;hpb=5ddc612b735317d5b22553a63aad7879503e3950;p=lyx.git diff --git a/src/frontends/FontLoader.h b/src/frontends/FontLoader.h index 497f745988..20fe5b886e 100644 --- a/src/frontends/FontLoader.h +++ b/src/frontends/FontLoader.h @@ -9,8 +9,8 @@ * Full author contact details are available in file CREDITS. */ -#ifndef LYX_FONTLOADER_H -#define LYX_FONTLOADER_H +#ifndef FONTLOADER_H +#define FONTLOADER_H namespace lyx { @@ -25,18 +25,19 @@ class FontLoader { public: /// - FontLoader() {} - /// - virtual ~FontLoader() {} + FontLoader(); + /// Clears cache + ~FontLoader(); /// Update fonts after zoom, dpi, font names, or norm change - virtual void update() = 0; + // (basically by deleting all cached values) + void update(); /// Is the given font available ? - virtual bool available(FontInfo const & f) = 0; + bool available(FontInfo const & f); /// Get the Font metrics for this FontInfo - virtual FontMetrics const & metrics(FontInfo const & f) = 0; + FontMetrics const & metrics(FontInfo const & f); }; @@ -47,4 +48,4 @@ extern frontend::FontLoader & theFontLoader(); } // namespace lyx -#endif // QFONT_LOADER_H +#endif // FONTLOADER_H