41 static bool fontMatchOnSystem(
const QFont &f );
49 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 );
94 static QString standardTestFontFamily();
102 static bool loadStandardTestFonts(
const QStringList &loadstyles );
110 static QFont getStandardTestFont(
const QString &style =
"Roman",
int pointsize = 12 );
120 static QDomElement toXmlElement(
const QFont &font, QDomDocument &document,
const QString &elementName );
131 static bool setFromXmlElement( QFont &font,
const QDomElement &element );
143 static bool setFromXmlChildNode( QFont &font,
const QDomElement &element,
const QString &childNode );
150 static QMimeData *toMimeData(
const QFont &font )
SIP_FACTORY;
157 static QFont fromMimeData(
const QMimeData *data,
bool *ok
SIP_OUT =
nullptr );
165 static QString translateNamedStyle(
const QString &namedStyle );
173 static QString untranslateNamedStyle(
const QString &namedStyle );
184 static QString asCSS(
const QFont &font,
double pointToPixelMultiplier = 1.0 );
190 static void addRecentFontFamily(
const QString &family );
196 static QStringList recentFontFamilies();
205 static void setFontFamily( QFont &font,
const QString &family );
214 static QFont createFont(
const QString &family,
int pointSize = -1,
int weight = -1,
bool italic =
false );