#include <qfontengine_qpf_p.h>
Definition at line 256 of file qfontengine_qpf_p.h.
◆ QPFGenerator()
◆ align4()
void QPFGenerator::align4 |
( |
| ) |
|
|
inline |
Definition at line 276 of file qfontengine_qpf_p.h.
qint64 pos() const
Reimplemented Function
bool putChar(char c)
Writes the character c to the device.
◆ generate()
void QPFGenerator::generate |
( |
| ) |
|
Definition at line 1059 of file qfontengine_qpf.cpp.
Referenced by QFontEngineQPF::QFontEngineQPF().
void writeUInt32(quint32 value)
The QByteArray class provides an array of bytes.
bool seek(qint64 off)
Reimplemented Function
void writeBlock(QFontEngineQPF::BlockTag tag, const QByteArray &data)
◆ writeBlock()
Definition at line 1141 of file qfontengine_qpf.cpp.
1145 const int padSize = ((data.
size() + 3) / 4) * 4 - data.
size();
1148 for (
int i = 0; i < padSize; ++i)
void writeUInt32(quint32 value)
void writeUInt8(quint8 value)
int size() const
Returns the number of bytes in this byte array.
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
void writeUInt16(quint16 value)
◆ writeGMap()
void QPFGenerator::writeGMap |
( |
| ) |
|
Definition at line 1125 of file qfontengine_qpf.cpp.
1134 const int numBytes = glyphCount *
sizeof(
quint32);
1136 buffer.
resize(pos + numBytes);
void writeUInt32(quint32 value)
virtual int glyphCount() const
char * data()
Returns a pointer to the data stored in the byte array.
The QByteArray class provides an array of bytes.
bool seek(qint64 off)
Reimplemented Function
QByteArray & buffer()
Returns a reference to the QBuffer's internal buffer.
void * qMemSet(void *dest, int c, size_t n)
void resize(int size)
Sets the size of the byte array to size bytes.
int size() const
Returns the number of bytes in this byte array.
void writeUInt16(quint16 value)
◆ writeHeader()
void QPFGenerator::writeHeader |
( |
| ) |
|
Definition at line 1069 of file qfontengine_qpf.cpp.
1073 header.
magic[0] =
'Q';
1074 header.
magic[1] =
'P';
1075 header.
magic[2] =
'F';
1076 header.
magic[3] =
'2';
1081 dev->
write((
const char *)&header,
sizeof(header));
1119 header.dataSize = qToBigEndian<quint16>(size -
sizeof(header));
1121 dev->
write((
const char *)&header,
sizeof(header));
virtual QFixed lineThickness() const
virtual qreal minRightBearing() const
virtual QFixed averageCharWidth() const
QByteArray toUtf8() const Q_REQUIRED_RESULT
Returns a UTF-8 representation of the string as a QByteArray.
The QByteArray class provides an array of bytes.
qint64 pos() const
Reimplemented Function
quint32 qFromBigEndian< quint32 >(const uchar *src)
static QFixed fromReal(qreal r)
bool seek(qint64 off)
Reimplemented Function
void writeTaggedUInt32(QFontEngineQPF::HeaderTag tag, quint32 value)
#define MAKE_TAG(ch1, ch2, ch3, ch4)
virtual qreal maxCharWidth() const =0
void writeTaggedString(QFontEngineQPF::HeaderTag tag, const QByteArray &string)
void writeTaggedQFixed(QFontEngineQPF::HeaderTag tag, QFixed value)
virtual QFixed ascent() const =0
virtual QFixed descent() const =0
static const char * data(const QByteArray &arr)
virtual FaceId faceId() const
virtual bool getSfntTableData(uint, uchar *, uint *) const
virtual qreal minLeftBearing() const
virtual QFixed xHeight() const
void writeTaggedUInt8(QFontEngineQPF::HeaderTag tag, quint8 value)
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
virtual QFixed underlinePosition() const
virtual QFixed leading() const =0
◆ writeInt8()
void QPFGenerator::writeInt8 |
( |
qint8 |
value | ) |
|
|
inline |
Definition at line 274 of file qfontengine_qpf_p.h.
274 {
dev->
write((
const char *)&value,
sizeof(value)); }
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
◆ writeTaggedQFixed()
Definition at line 1173 of file qfontengine_qpf.cpp.
void writeUInt32(quint32 value)
void writeUInt16(quint16 value)
◆ writeTaggedString()
Definition at line 1152 of file qfontengine_qpf.cpp.
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
void writeUInt16(quint16 value)
◆ writeTaggedUInt32()
Definition at line 1159 of file qfontengine_qpf.cpp.
void writeUInt32(quint32 value)
void writeUInt16(quint16 value)
◆ writeTaggedUInt8()
◆ writeUInt16()
void QPFGenerator::writeUInt16 |
( |
quint16 |
value | ) |
|
|
inline |
Definition at line 271 of file qfontengine_qpf_p.h.
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
◆ writeUInt32()
void QPFGenerator::writeUInt32 |
( |
quint32 |
value | ) |
|
|
inline |
Definition at line 272 of file qfontengine_qpf_p.h.
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
◆ writeUInt8()
void QPFGenerator::writeUInt8 |
( |
quint8 |
value | ) |
|
|
inline |
Definition at line 273 of file qfontengine_qpf_p.h.
273 {
dev->
write((
const char *)&value,
sizeof(value)); }
qint64 write(const char *data, qint64 len)
Writes at most maxSize bytes of data from data to the device.
◆ dev
◆ fe
The documentation for this struct was generated from the following files: