mirror-chatterino2/fonts.h
2017-01-11 18:52:09 +01:00

41 lines
790 B
C++

#ifndef FONTS_H
#define FONTS_H
#include <QFont>
#include <QFontMetrics>
class Fonts
{
public:
enum Type : char {
Medium,
MediumBold,
MediumItalic,
Small,
Large,
VeryLarge
};
static QFont &getFont(Type type);
static QFontMetrics &getFontMetrics(Type type);
private:
Fonts();
static QFont *medium;
static QFont *mediumBold;
static QFont *mediumItalic;
static QFont *small;
static QFont *large;
static QFont *veryLarge;
static QFontMetrics *metricsMedium;
static QFontMetrics *metricsMediumBold;
static QFontMetrics *metricsMediumItalic;
static QFontMetrics *metricsSmall;
static QFontMetrics *metricsLarge;
static QFontMetrics *metricsVeryLarge;
};
#endif // FONTS_H