以下成員源於類 QFont 已過時。 提供它們是為使舊源代碼能繼續工作。強烈建議不要在新代碼中使用它們。
(obsolete)
bool
|
rawMode () const |
(obsolete)
QString
|
rawName () const |
(obsolete)
void
|
setRawMode (bool enable ) |
(obsolete)
void
|
setRawName (const QString & name ) |
(obsolete)
void
|
removeSubstitution (const QString & familyName ) |
返迴
true
if raw mode is used for font name matching; otherwise returns
false
.
另請參閱 setRawMode ().
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 .
另請參閱 setRawName ().
[static]
void
QFont::
removeSubstitution
(const
QString
&
familyName
)
This function is deprecated. Use removeSubstitutions () 代替。
若 enable is true, turns raw mode on; otherwise turns raw mode off. This function only has an effect under X11.
If raw mode is enabled, Qt will search for an X font with a complete font name matching the family name, ignoring all other values set for the QFont . If the font name matches several fonts, Qt will use the first font returned by X. QFontInfo cannot be used to fetch information about a QFont using raw mode (it will return the values set in the QFont for all parameters, including the family name).
警告: Enabling raw mode has no effect since Qt 5.0.
另請參閱 rawMode ().
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.