19#include <QApplication>
20#include <QFontDatabase>
21#include <QGuiApplication>
141 log_error(
_(
"Failed to setup font for role %s."),
156 int max,
smaller, default_size;
159 const QScreen *screen = QApplication::primaryScreen();
164 / screen->devicePixelRatio();
171 sl <<
"Segoe UI" <<
"Cousine" <<
"Liberation Sans" <<
"Droid Sans"
172 <<
"Ubuntu" <<
"Noto Sans" <<
"DejaVu Sans" <<
"Luxi Sans"
173 <<
"Lucida Sans" <<
"Trebuchet MS" <<
"Times New Roman";
186 sl <<
"Cousine" <<
"Liberation Mono" <<
"Source Code Pro"
187 <<
"Source Code Pro [ADBO]"
188 <<
"Noto Mono" <<
"Ubuntu Mono" <<
"Courier New";
199 sl <<
"Arimo" <<
"Play" <<
"Tinos" <<
"Ubuntu" <<
"Times New Roman"
200 <<
"Droid Sans" <<
"Noto Sans";
207 sl <<
"Papyrus" <<
"Segoe Script" <<
"Comic Sans MS"
208 <<
"Droid Sans" <<
"Noto Sans" <<
"Ubuntu";
238 if (!
sizes.isEmpty()) {
244 while (
i.hasNext()) {
static QString bold(QString text)
static fc_font * m_instance
static fc_font * instance()
void set_font(QString name, QFont *qf)
QFont * get_font(QString name)
QMap< QString, QFont * > font_map
QString configure_font(QString font_name, QStringList sl, int size, bool bold)
static void configure_single(QString role, QStringList sl, int size, char *font_opt, bool bold=false)
#define log_error(message,...)
const char *const city_productions
const char *const chatline
const char *const default_font
const char *const notify_label
const char *const city_names
const char *const help_text
const char *const reqtree_text
const struct option_set * client_optset
const char * option_name(const struct option *poption)
enum option_type option_type(const struct option *poption)
struct client_options gui_options
const char * option_font_get(const struct option *poption)
#define options_iterate(poptset, poption)
#define options_iterate_end
struct sprite int int int int struct sprite int int float scale
char gui_qt_font_city_names[FONT_NAME_SIZE]
char gui_qt_font_city_productions[FONT_NAME_SIZE]
char gui_qt_font_help_text[FONT_NAME_SIZE]
char gui_qt_font_default[FONT_NAME_SIZE]
char gui_qt_font_reqtree_text[FONT_NAME_SIZE]
char gui_qt_font_chatline[FONT_NAME_SIZE]
char gui_qt_font_notify_label[FONT_NAME_SIZE]
size_t fc_strlcpy(char *dest, const char *src, size_t n)