#ifndef FONT_METRICS_H
#define FONT_METRICS_H
-#include "support/docstring.h"
+#include "support/strfwd.h"
/**
* A class holding helper functions for determining
int & descent) const = 0;
/// return the maximum descent of the font
- inline int maxHeight() const {
- return maxAscent() + maxDescent();
- }
+ inline int maxHeight() const { return maxAscent() + maxDescent(); }
/// return the descent of the char in the font
- inline int height(char_type c) const
- {
- return ascent(c) + descent(c);
- }
+ inline int height(char_type c) const { return ascent(c) + descent(c); }
/// return the inner width of the char in the font
inline int center(char_type c) const {
} // namespace frontend
class Font;
+class FontInfo;
/// Implementation is in Application.cpp
frontend::FontMetrics const & theFontMetrics(Font const & f);
+frontend::FontMetrics const & theFontMetrics(FontInfo const & fi);
} // namespace lyx