|
static void | addRecentFontFamily (const QString &family) |
| Adds a font family to the list of recently used font families. More...
|
|
static QString | asCSS (const QFont &font, double pointToPixelMultiplier=1.0) |
| Returns a CSS string representing the specified font as closely as possible. More...
|
|
static bool | fontFamilyHasStyle (const QString &family, const QString &style) |
| Check whether font family on system has specific style. More...
|
|
static bool | fontFamilyMatchOnSystem (const QString &family, QString *chosen=nullptr, bool *match=nullptr) |
| Check whether font family is on system. More...
|
|
static bool | fontFamilyOnSystem (const QString &family) |
| Check whether font family is on system in a quick manner, which does not compare [foundry]. More...
|
|
static bool | fontMatchOnSystem (const QFont &f) |
| Check whether exact font is on system. More...
|
|
static QFont | fromMimeData (const QMimeData *data, bool *ok=nullptr) |
| Attempts to parse the provided mime data as a QFont. More...
|
|
static QFont | getStandardTestFont (const QString &style="Roman", int pointsize=12) |
| Gets standard test font with specific style. More...
|
|
static bool | loadStandardTestFonts (const QStringList &loadstyles) |
| Loads standard test fonts from filesystem or qrc resource. More...
|
|
static QStringList | recentFontFamilies () |
| Returns a list of recently used font families. More...
|
|
static QString | resolveFontStyleName (const QFont &font) |
| Attempts to resolve the style name corresponding to the specified font object. More...
|
|
static bool | setFromXmlChildNode (QFont &font, const QDomElement &element, const QString &childNode) |
| Sets the properties of a font to match the properties stored in an XML child node. More...
|
|
static bool | setFromXmlElement (QFont &font, const QDomElement &element) |
| Sets the properties of a font to match the properties stored in an XML element. More...
|
|
static QString | standardTestFontFamily () |
| Gets standard test font family. More...
|
|
static QMimeData * | toMimeData (const QFont &font) |
| Returns new mime data representing the specified font settings. More...
|
|
static QDomElement | toXmlElement (const QFont &font, QDomDocument &document, const QString &elementName) |
| Returns a DOM element containing the properties of the font. More...
|
|
static QString | translateNamedStyle (const QString &namedStyle) |
| Returns the localized named style of a font, if such a translation is available. More...
|
|
static QString | untranslateNamedStyle (const QString &namedStyle) |
| Returns the english named style of a font, if possible. More...
|
|
static bool | updateFontViaStyle (QFont &f, const QString &fontstyle, bool fallback=false) |
| Updates font with named style and retain all font properties. More...
|
|