mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
28 lines
766 B
C++
28 lines
766 B
C++
#include "fonts.h"
|
|
|
|
#define DEFAULT_FONT "Arial"
|
|
|
|
QFont* Fonts::medium = new QFont(DEFAULT_FONT);
|
|
QFont* Fonts::mediumBold = new QFont(DEFAULT_FONT);
|
|
QFont* Fonts::mediumItalic = new QFont(DEFAULT_FONT);
|
|
QFont* Fonts::small = new QFont(DEFAULT_FONT);
|
|
QFont* Fonts::large = new QFont(DEFAULT_FONT);
|
|
QFont* Fonts::veryLarge = new QFont(DEFAULT_FONT);
|
|
|
|
Fonts::Fonts()
|
|
{
|
|
|
|
}
|
|
|
|
QFont& Fonts::getFont(Type type)
|
|
{
|
|
if (type == Medium ) return *medium ;
|
|
if (type == MediumBold ) return *mediumBold ;
|
|
if (type == MediumItalic) return *mediumItalic;
|
|
if (type == Small ) return *small ;
|
|
if (type == Large ) return *large ;
|
|
if (type == VeryLarge ) return *veryLarge ;
|
|
|
|
return *medium;
|
|
}
|