Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSupportedWritingSystems Class Reference

The QSupportedWritingSystems class is used when registering fonts with the internal Qt fontdatabase. More...

#include <qplatformfontdatabase.h>

+ Collaboration diagram for QSupportedWritingSystems:

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.
 
QSupportedWritingSystemsoperator= (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 &)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ QSupportedWritingSystems() [1/2]

QSupportedWritingSystems::QSupportedWritingSystems ( )

Constructs a new object to handle supported writing systems.

Definition at line 103 of file qplatformfontdatabase.cpp.

◆ QSupportedWritingSystems() [2/2]

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.

+ Here is the call graph for this function:

◆ ~QSupportedWritingSystems()

QSupportedWritingSystems::~QSupportedWritingSystems ( )

Destroys the supported writing systems object.

Definition at line 174 of file qplatformfontdatabase.cpp.

References QBasicAtomicInteger< T >::deref(), and QWritingSystemsPrivate::ref.

+ Here is the call graph for this function:

Member Function Documentation

◆ operator=()

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.

+ Here is the call graph for this function:

◆ setSupported()

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 addFontToDatabase(), addFontToDatabase(), QFreeTypeFontDatabase::addTTFile(), populateFromPattern(), and QPlatformFontDatabase::writingSystemsFromTrueTypeBits().

+ Here is the caller graph for this function:

◆ supported()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator!=

Q_GUI_EXPORT bool operator!= ( const QSupportedWritingSystems & ,
const QSupportedWritingSystems &  )
friend

Definition at line 136 of file qplatformfontdatabase.cpp.

◆ operator<<

Q_GUI_EXPORT QDebug operator<< ( QDebug ,
const QSupportedWritingSystems &  )
friend

Definition at line 152 of file qplatformfontdatabase.cpp.

◆ operator==

Q_GUI_EXPORT bool operator== ( const QSupportedWritingSystems & ,
const QSupportedWritingSystems &  )
friend

Definition at line 131 of file qplatformfontdatabase.cpp.


The documentation for this class was generated from the following files: