42 #ifndef QFONTENGINE_QPF_P_H 43 #define QFONTENGINE_QPF_P_H 60 #ifndef QT_NO_QWS_QPF2 61 #if !defined(QT_NO_FREETYPE) 68 #ifndef QT_NO_QWS_QPF2 124 CurrentMajorVersion = 2,
125 CurrentMinorVersion = 0
163 #ifdef QT_FONTS_ARE_RESOURCES 171 bool getSfntTableData(
uint tag,
uchar *buffer,
uint *length)
const;
173 bool stringToCMap(
const QChar *str,
int len,
QGlyphLayout *glyphs,
int *nglyphs, QTextEngine::ShaperFlags flags)
const;
174 void recalcAdvances(
QGlyphLayout *, QTextEngine::ShaperFlags)
const;
186 qreal maxCharWidth()
const;
187 qreal minLeftBearing()
const;
188 qreal minRightBearing()
const;
189 QFixed underlinePosition()
const;
190 QFixed lineThickness()
const;
194 bool canRender(
const QChar *
string,
int len);
195 inline const char *
name()
const {
return "QPF2"; }
199 bool isValid()
const;
203 static bool verifyHeader(
const uchar *
data,
int size);
207 #if !defined(QT_NO_FREETYPE) 209 void unlockFace()
const;
210 void doKerning(
QGlyphLayout *g, QTextEngine::ShaperFlags flags)
const;
211 virtual HB_Error getPointInOutline(HB_Glyph glyph,
int flags, hb_uint32 point, HB_Fixed *xpos, HB_Fixed *ypos, hb_uint32 *nPoints);
212 virtual QFixed emSquareSize()
const;
222 renderingFontEngine = 0;
227 #if !defined(QT_NO_FREETYPE) 232 void remapFontData();
259 : dev(device), fe(engine) {}
276 void align4() {
while (dev->pos() & 3) { dev->putChar(
'\0'); } }
282 #endif // QT_NO_QWS_QPF2 299 #endif // QFONTENGINE_QPF_P_H The QVariant class acts like a union for the most common Qt data types.
void writeUInt32(quint32 value)
void writeUInt8(quint8 value)
const unsigned char magic[QSXE_MAGIC_BYTES]
#define QT_END_NAMESPACE
This macro expands to.
QFontEngine * takeRenderingEngine()
void writeInt8(qint8 value)
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.
virtual int glyphCount() const
The QBuffer class provides a QIODevice interface for a QByteArray.
The QString class provides a Unicode character string.
The QChar class provides a 16-bit Unicode character.
#define QT_BEGIN_NAMESPACE
This macro expands to.
struct FT_FaceRec_ * FT_Face
static QFontEngine * loadEngine(int script, const QFontDef &request, QtFontFamily *family, QtFontFoundry *foundry, QtFontStyle *style, QtFontSize *size)
The QStringList class provides a list of strings.
bool kerning_pairs_loaded
QByteArray encodedFileName
QFontEngine * renderingEngine() const
The QImage class provides a hardware-independent image representation that allows direct access to th...
static const char * data(const QByteArray &arr)
const char * name() const
QFontEngine * renderingFontEngine
The QPaintEngine class provides an abstract definition of how QPainter draws to a given device on a g...
Q_CORE_EXPORT int QT_FASTCALL script(uint ucs4)
const uchar * externalCMap
QByteArray freetypeCMapTable
QPFGenerator(QBuffer *device, QFontEngine *engine)
static QString fileName(const QString &fileUrl)
QStringList fallbackFamilies
void writeUInt16(quint16 value)