![]() |
Qt 6.x
The Qt SDK
|
The QSupportedWritingSystems class is used when registering fonts with the internal Qt fontdatabase. More...
#include <qplatformfontdatabase.h>
Public Member Functions | |
QSupportedWritingSystems () | |
Constructs a new object to handle supported writing systems. | |
QSupportedWritingSystems (const QSupportedWritingSystems &other) | |
Constructs a copy of the other writing systems object. | |
QSupportedWritingSystems & | operator= (const QSupportedWritingSystems &other) |
Constructs a copy of the other writing systems object. | |
~QSupportedWritingSystems () | |
Destroys the supported writing systems object. | |
void | setSupported (QFontDatabase::WritingSystem, bool supported=true) |
Sets or clears support for the specified writingSystem based on the value given by support. | |
bool | supported (QFontDatabase::WritingSystem) const |
Returns true if the writing system specified by writingSystem is supported; otherwise returns false . | |
Friends | |
Q_GUI_EXPORT bool | operator== (const QSupportedWritingSystems &, const QSupportedWritingSystems &) |
Q_GUI_EXPORT bool | operator!= (const QSupportedWritingSystems &, const QSupportedWritingSystems &) |
Q_GUI_EXPORT QDebug | operator<< (QDebug, const QSupportedWritingSystems &) |
The QSupportedWritingSystems class is used when registering fonts with the internal Qt fontdatabase.
\inmodule QtGui
Its to provide an easy to use interface for indicating what writing systems a specific font supports.
Definition at line 32 of file qplatformfontdatabase.h.
QSupportedWritingSystems::QSupportedWritingSystems | ( | ) |
Constructs a new object to handle supported writing systems.
Definition at line 103 of file qplatformfontdatabase.cpp.
QSupportedWritingSystems::QSupportedWritingSystems | ( | const QSupportedWritingSystems & | other | ) |
Constructs a copy of the other writing systems object.
Definition at line 111 of file qplatformfontdatabase.cpp.
References other(), QBasicAtomicInteger< T >::ref(), and QWritingSystemsPrivate::ref.
QSupportedWritingSystems::~QSupportedWritingSystems | ( | ) |
Destroys the supported writing systems object.
Definition at line 174 of file qplatformfontdatabase.cpp.
References QBasicAtomicInteger< T >::deref(), and QWritingSystemsPrivate::ref.
QSupportedWritingSystems & QSupportedWritingSystems::operator= | ( | const QSupportedWritingSystems & | other | ) |
Constructs a copy of the other writing systems object.
Definition at line 120 of file qplatformfontdatabase.cpp.
References QBasicAtomicInteger< T >::deref(), other(), and QWritingSystemsPrivate::ref.
void QSupportedWritingSystems::setSupported | ( | QFontDatabase::WritingSystem | writingSystem, |
bool | supported = true |
||
) |
Sets or clears support for the specified writingSystem based on the value given by support.
Definition at line 197 of file qplatformfontdatabase.cpp.
References QWritingSystemsPrivate::list.
Referenced by QWindowsDirectWriteFontDatabase::addApplicationFont(), addFontToDatabase(), addFontToDatabase(), QFreeTypeFontDatabase::addTTFile(), QWindowsDirectWriteFontDatabase::populateFamily(), populateFromPattern(), and QPlatformFontDatabase::writingSystemsFromTrueTypeBits().
bool QSupportedWritingSystems::supported | ( | QFontDatabase::WritingSystem | writingSystem | ) | const |
Returns true
if the writing system specified by writingSystem is supported; otherwise returns false
.
Definition at line 207 of file qplatformfontdatabase.cpp.
References QList< T >::at(), and QWritingSystemsPrivate::list.
Referenced by addFontToDatabase(), addFontToDatabase(), and qt_registerFont().
|
friend |
Definition at line 136 of file qplatformfontdatabase.cpp.
|
friend |
Definition at line 152 of file qplatformfontdatabase.cpp.
|
friend |
Definition at line 131 of file qplatformfontdatabase.cpp.