40 static bool fontMatchOnSystem(
const QFont &f );
48 static bool fontFamilyOnSystem(
const QString &family );
56 static bool fontFamilyHasStyle(
const QString &family,
const QString &style );
69 static QString resolveFontStyleName(
const QFont &font );
78 static bool fontFamilyMatchOnSystem(
const QString &family, QString *chosen =
nullptr,
bool *match =
nullptr );
88 static bool updateFontViaStyle( QFont &f,
const QString &fontstyle,
bool fallback =
false );
93 static QString standardTestFontFamily();
101 static bool loadStandardTestFonts(
const QStringList &loadstyles );
109 static QFont getStandardTestFont(
const QString &style =
"Roman",
int pointsize = 12 );
119 static QDomElement toXmlElement(
const QFont &font, QDomDocument &document,
const QString &elementName );
130 static bool setFromXmlElement( QFont &font,
const QDomElement &element );
142 static bool setFromXmlChildNode( QFont &font,
const QDomElement &element,
const QString &childNode );
149 static QMimeData *toMimeData(
const QFont &font )
SIP_FACTORY;
156 static QFont fromMimeData(
const QMimeData *data,
bool *ok
SIP_OUT =
nullptr );
164 static QString translateNamedStyle(
const QString &namedStyle );
172 static QString untranslateNamedStyle(
const QString &namedStyle );
183 static QString asCSS(
const QFont &font,
double pointToPixelMultiplier = 1.0 );
189 static void addRecentFontFamily(
const QString &family );
195 static QStringList recentFontFamilies();
204 static void setFontFamily( QFont &font,
const QString &family );
213 static QFont createFont(
const QString &family,
int pointSize = -1,
int weight = -1,
bool italic =
false );