40 static bool fontMatchOnSystem(
const QFont &f );
48 static bool fontFamilyOnSystem(
const QString &family );
57 static bool fontFamilyHasStyle(
const QString &family,
const QString &style );
70 static QString resolveFontStyleName(
const QFont &font );
79 static bool fontFamilyMatchOnSystem(
const QString &family, QString *chosen =
nullptr,
bool *match =
nullptr );
89 static bool updateFontViaStyle( QFont &f,
const QString &fontstyle,
bool fallback =
false );
95 static QString standardTestFontFamily();
104 static bool loadStandardTestFonts(
const QStringList &loadstyles );
113 static QFont getStandardTestFont(
const QString &style =
"Roman",
int pointsize = 12 );
124 static QDomElement toXmlElement(
const QFont &font, QDomDocument &document,
const QString &elementName );
136 static bool setFromXmlElement( QFont &font,
const QDomElement &element );
149 static bool setFromXmlChildNode( QFont &font,
const QDomElement &element,
const QString &childNode );
157 static QMimeData *toMimeData(
const QFont &font )
SIP_FACTORY;
165 static QFont fromMimeData(
const QMimeData *data,
bool *ok
SIP_OUT =
nullptr );
174 static QString translateNamedStyle(
const QString &namedStyle );
183 static QString untranslateNamedStyle(
const QString &namedStyle );
195 static QString asCSS(
const QFont &font,
double pointToPixelMultiplier = 1.0 );
202 static void addRecentFontFamily(
const QString &family );
209 static QStringList recentFontFamilies();