Enumerations | |
enum | AntialiasingStyle { SubpixelAntialiasing , GrayscaleAntialiasing , SubpixelAntialiasingUnlessHighDPI , NoAntialiasing } |
Functions | |
int | getDefaultFontSize () |
Returns the default font size for the current platform. | |
std::string | getDefaultApplicationFontName () |
Returns the default application font name. | |
QFont | getDefaultApplicationFont () |
Returns the default application font, ignoring user settings. | |
QFont | getApplicationFont (QWidget *widget) |
Returns the currently configured application font (or the default, if it doesn't exist). | |
void | setApplicationFont (const QFont *font) |
Sets the currently configured application font. | |
std::string | getDefaultMonospaceFontName () |
Returns the default monospaced font name. | |
QFont | getDefaultMonospaceFont () |
Returns the default monospaced font, ignoring user settings. | |
QFont | getMonospaceFont (QWidget *widget) |
Returns the currently configured monospaced font (or the default, if it doesn't exist). | |
void | setMonospaceFont (const QFont *font) |
Sets the currently configured monospaced font. | |
std::string | getDefaultEmojiFontName () |
Returns the default emoji font name. | |
QFont | getDefaultEmojiFont () |
Returns the default emoji font, ignoring user settings. | |
QFont | getEmojiFont (QWidget *widget) |
Returns the currently configured emoji font (or the default, if it doesn't exist). | |
void | setEmojiFont (const QFont *font) |
Sets the currently configured emoji font. | |
int | getDefaultExtraFontSpacing () |
int | getExtraFontSpacing () |
void | setExtraFontSpacing (int spacing) |
int | getFontVerticalOffset () |
bool | allowBoldFonts () |
void | setAllowBoldFonts (bool allow) |
AntialiasingStyle | getAntialiasingStyle () |
void | setAntialiasingStyle (AntialiasingStyle style) |
void | adjustFontForAntialiasingSettings (QFont &font, QWidget *widget) |
int | getFontWidthAndAdjustSpacing (QFont &font) |
enum AntialiasingStyle |
int getDefaultFontSize | ( | ) |
Returns the default font size for the current platform.
std::string getDefaultApplicationFontName | ( | ) |
Returns the default application font name.
QFont getDefaultApplicationFont | ( | ) |
Returns the default application font, ignoring user settings.
QFont getApplicationFont | ( | QWidget * | widget | ) |
Returns the currently configured application font (or the default, if it doesn't exist).
void setApplicationFont | ( | const QFont * | font | ) |
Sets the currently configured application font.
font | The font to use. Passing nullptr will reset the application font to the user's configured default. |
std::string getDefaultMonospaceFontName | ( | ) |
Returns the default monospaced font name.
QFont getDefaultMonospaceFont | ( | ) |
Returns the default monospaced font, ignoring user settings.
QFont getMonospaceFont | ( | QWidget * | widget | ) |
Returns the currently configured monospaced font (or the default, if it doesn't exist).
void setMonospaceFont | ( | const QFont * | font | ) |
Sets the currently configured monospaced font.
font | The font to use. Passing nullptr will reset the monospaced font to the user's configured default. |
std::string getDefaultEmojiFontName | ( | ) |
Returns the default emoji font name.
QFont getDefaultEmojiFont | ( | ) |
Returns the default emoji font, ignoring user settings.
QFont getEmojiFont | ( | QWidget * | widget | ) |
Returns the currently configured emoji font (or the default, if it doesn't exist).
void setEmojiFont | ( | const QFont * | font | ) |
Sets the currently configured emoji font.
font | The font to use. Passing nullptr will reset the emoji font to the user's configured default. |
int getDefaultExtraFontSpacing | ( | ) |
int getExtraFontSpacing | ( | ) |
void setExtraFontSpacing | ( | int | spacing | ) |
int getFontVerticalOffset | ( | ) |
bool allowBoldFonts | ( | ) |
void setAllowBoldFonts | ( | bool | allow | ) |
AntialiasingStyle getAntialiasingStyle | ( | ) |
void setAntialiasingStyle | ( | AntialiasingStyle | style | ) |
void adjustFontForAntialiasingSettings | ( | QFont & | font, |
QWidget * | widget ) |
int getFontWidthAndAdjustSpacing | ( | QFont & | font | ) |