Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-qt/fonts.cpp File Reference

Freeciv-3.1

Loading...
Searching...
No Matches
Functions
fonts.cpp File Reference
`#include <QApplication>`
`#include <QFontDatabase>`
`#include <QGuiApplication>`
`#include <QWidget>`
`#include <QScreen>`
`#include "options.h"`
`#include "fonts.h"`

Go to the source code of this file.

## Functions

static void | configure_single (QString role, QStringList sl, int size, char *font_opt, bool bold=false)
void | configure_fonts ()
QString | configure_font (QString font_name, QStringList sl, int size, bool bold)

## Function Documentation

## ◆ configure_font()

QString configure_font | ( | QString | font_name,
|  | QStringList | sl,
|  | int | size,
|  | bool | bold
| ) |  |

Returns long font name, sets given font for use

Definition at line 220 of file fonts.cpp.

Referenced by configure_single().

## ◆ configure_fonts()

void configure_fonts | ( |  | ) |

Tries to choose good fonts for freeciv-qt

Definition at line 156 of file fonts.cpp.

Referenced by qtg_ui_main().

## ◆ configure_single()

static void configure_single | ( | QString | role,
|  | QStringList | sl,
|  | int | size,
|  | char * | font_opt,
|  | bool | bold = `false`
| ) |  |

static

Tries to choose good font for a single role.

Definition at line 133 of file fonts.cpp.

Referenced by configure_fonts().