Obsolete Members for QFont

The following members of class QFont are obsolete. They are provided to keep old source code working. We strongly advise against using them in new code.

Public Functions

(obsolete) QString rawName() const
(obsolete) void setRawName(const QString & name)

Static Public Members

(obsolete) void removeSubstitution(const QString & familyName)

Member Function Documentation

QString QFont::​rawName() const

Returns the name of the font within the underlying window system.

On X11, this function will return an empty string.

Using the return value of this function is usually not portable.

See also setRawName().

[static] void QFont::​removeSubstitution(const QString & familyName)

This function is deprecated. Use removeSubstitutions() instead.

void QFont::​setRawName(const QString & name)

Sets a font by its system specific name.

A font set with setRawName() is still a full-featured QFont. It can be queried (for example with italic()) or modified (for example with setItalic()) and is therefore also suitable for rendering rich text.

If Qt's internal font database cannot resolve the raw name, the font becomes a raw font with name as its family.

See also rawName(), setRawMode(), and setFamily().

© 2015 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.