4#ifndef QRAWFONTPRIVATE_P_H
5#define QRAWFONTPRIVATE_P_H
18#include <QtGui/private/qtguiglobal_p.h>
22#include <QtCore/qthread.h>
23#include <QtCore/qthreadstorage.h>
25#if !defined(QT_NO_RAWFONT)
29namespace {
class CustomFontFileLoader; }
35 , hintingPreference(
QFont::PreferDefaultHinting)
40 : fontEngine(
other.fontEngine)
41 , hintingPreference(
other.hintingPreference)
42 , thread(
other.thread)
47 if (fontEngine !=
nullptr)
48 fontEngine->ref.ref();
61 setFontEngine(
nullptr);
70 return fontEngine !=
nullptr;
81 if (fontEngine !=
nullptr) {
82 if (!fontEngine->ref.deref())
91 if (fontEngine !=
nullptr) {
92 fontEngine->ref.ref();
T * data() const noexcept
Returns a pointer to the shared data object.
static QRawFontPrivate * get(const QRawFont &font)
QRawFontPrivate(const QRawFontPrivate &other)
QFont::HintingPreference hintingPreference
void setFontEngine(QFontEngine *engine)
The QRawFont class provides access to a single physical instance of a font.
static QThread * currentThread()
Combined button and popup list for selecting options.
GLenum GLsizeiptr const void * fontData