42 #ifndef QFONTENGINE_QPA_P_H 43 #define QFONTENGINE_QPA_P_H 55 #include <QtCore/qconfig.h> 56 #include <QtCore/qglobal.h> 57 #include <QtCore/qendian.h> 58 #include <QtCore/QBuffer> 62 #include <QtCore/QFile> 123 CurrentMajorVersion = 2,
124 CurrentMinorVersion = 0
166 bool getSfntTableData(
uint tag,
uchar *buffer,
uint *length)
const;
168 bool stringToCMap(
const QChar *str,
int len,
QGlyphLayout *glyphs,
int *nglyphs, QTextEngine::ShaperFlags flags)
const;
169 void recalcAdvances(
QGlyphLayout *, QTextEngine::ShaperFlags)
const;
180 qreal maxCharWidth()
const;
181 qreal minLeftBearing()
const;
182 qreal minRightBearing()
const;
183 QFixed underlinePosition()
const;
184 QFixed lineThickness()
const;
188 bool canRender(
const QChar *
string,
int len);
189 inline const char *
name()
const {
return "QPF2"; }
193 bool isValid()
const;
197 static bool verifyHeader(
const uchar *
data,
int size);
223 : dev(device), fe(engine) {}
240 void align4() {
while (dev->pos() & 3) { dev->putChar(
'\0'); } }
262 #endif // QFONTENGINE_QPA_P_H The QVariant class acts like a union for the most common Qt data types.
const unsigned char magic[QSXE_MAGIC_BYTES]
void writeUInt8(quint8 value)
#define QT_END_NAMESPACE
This macro expands to.
const char * name() const
bool kerning_pairs_loaded
The QPainterPath class provides a container for painting operations, enabling graphical shapes to be ...
#define at(className, varName)
The QByteArray class provides an array of bytes.
The QBuffer class provides a QIODevice interface for a QByteArray.
The QString class provides a Unicode character string.
void writeUInt16(quint16 value)
The QChar class provides a 16-bit Unicode character.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QByteArray freetypeCMapTable
const uchar * externalCMap
static QFontEngine * loadEngine(int script, const QFontDef &request, QtFontFamily *family, QtFontFoundry *foundry, QtFontStyle *style, QtFontSize *size)
The QStringList class provides a list of strings.
void writeInt8(qint8 value)
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
virtual int glyphCount() const
QStringList fallbackFamilies
QPAGenerator(QBuffer *device, QFontEngine *engine)
void writeUInt32(quint32 value)