Qt 4.8
|
#include <qdebug.h>
#include <private/qfontengine_p.h>
#include "qbitmap.h"
#include "qpainter.h"
#include "qpainterpath.h"
#include "qvarlengtharray.h"
#include <qmath.h>
#include <qendian.h>
#include <private/qharfbuzz_p.h>
Go to the source code of this file.
Macros | |
#define | GRID(x, y) grid[(y)*(w+1) + (x)] |
#define | SET(x, y) (*(image_data + (y)*bpl + ((x) >> 3)) & (0x80 >> ((x) & 7))) |
Enumerations | |
enum | { EdgeRight = 0x1, EdgeDown = 0x2, EdgeLeft = 0x4, EdgeUp = 0x8 } |
Functions | |
static void | collectSingleContour (qreal x0, qreal y0, uint *grid, int x, int y, int w, int h, QPainterPath *path) |
static HB_Bool | hb_canRender (HB_Font font, const HB_UChar16 *string, hb_uint32 length) |
static void | hb_getAdvances (HB_Font font, const HB_Glyph *glyphs, hb_uint32 numGlyphs, HB_Fixed *advances, int flags) |
static HB_Fixed | hb_getFontMetric (HB_Font font, HB_FontMetric metric) |
static void | hb_getGlyphMetrics (HB_Font font, HB_Glyph glyph, HB_GlyphMetrics *metrics) |
static HB_Error | hb_getPointInOutline (HB_Font font, HB_Glyph glyph, int flags, hb_uint32 point, HB_Fixed *xpos, HB_Fixed *ypos, hb_uint32 *nPoints) |
static HB_Error | hb_getSFntTable (void *font, HB_Tag tableTag, HB_Byte *buffer, HB_UInt *length) |
static HB_Bool | hb_stringToGlyphs (HB_Font font, const HB_UChar16 *string, hb_uint32 length, HB_Glyph *glyphs, hb_uint32 *numGlyphs, HB_Bool rightToLeft) |
static uchar | highByte (glyph_t glyph) |
static QFixed | kerning (int left, int right, const QFontEngine::KernPair *pairs, int numPairs) |
Q_GLOBAL_STATIC_WITH_INITIALIZER (QVector< QRgb >, qt_grayPalette, { x->resize(256);QRgb *it=x->data();for(int i=0;i< x->size();++i,++it) *it=0xff000000|i|(i<< 8)|(i<< 16);}) const QVector< QRgb > &QFontEngine | |
Q_GUI_EXPORT void | qt_addBitmapToPath (qreal x0, qreal y0, const uchar *image_data, int bpl, int w, int h, QPainterPath *path) |
static bool | qtransform_equals_no_translate (const QTransform &a, const QTransform &b) |
static glyph_t | stripped (glyph_t glyph) |
Variables | |
static const HB_FontClass | hb_fontClass |
#define GRID | ( | x, | |
y | |||
) | grid[(y)*(w+1) + (x)] |
Definition at line 432 of file qfontengine.cpp.
Referenced by collectSingleContour(), and qt_addBitmapToPath().
#define SET | ( | x, | |
y | |||
) | (*(image_data + (y)*bpl + ((x) >> 3)) & (0x80 >> ((x) & 7))) |
Definition at line 433 of file qfontengine.cpp.
Referenced by qt_addBitmapToPath().
anonymous enum |
Enumerator | |
---|---|
EdgeRight | |
EdgeDown | |
EdgeLeft | |
EdgeUp |
Definition at line 435 of file qfontengine.cpp.
|
static |
Definition at line 441 of file qfontengine.cpp.
Referenced by qt_addBitmapToPath().
|
static |
Definition at line 111 of file qfontengine.cpp.
|
static |
Definition at line 96 of file qfontengine.cpp.
|
static |
Definition at line 129 of file qfontengine.cpp.
|
static |
Definition at line 117 of file qfontengine.cpp.
|
static |
Definition at line 155 of file qfontengine.cpp.
|
static |
Definition at line 166 of file qfontengine.cpp.
Referenced by QFontEngine::harfbuzzFace().
|
static |
Definition at line 74 of file qfontengine.cpp.
Definition at line 1311 of file qfontengine.cpp.
Referenced by QFontEngineMulti::addOutlineToPath(), QFontEngineMulti::boundingBox(), QFontEngineMulti::doKerning(), QFontEngineMulti::getGlyphBearings(), and QFontEngineMulti::recalcAdvances().
|
inlinestatic |
Definition at line 766 of file qfontengine.cpp.
Referenced by QFontEngine::doKerning().
Q_GLOBAL_STATIC_WITH_INITIALIZER | ( | QVector< QRgb > | , |
qt_grayPalette | , | ||
{ x->resize(256);QRgb *it=x->data();for(int i=0;i< x->size();++i,++it) *it=0xff000000|i|(i<< 8)|(i<< 16);} | |||
) | const & |
Definition at line 1121 of file qfontengine.cpp.
Q_GUI_EXPORT void qt_addBitmapToPath | ( | qreal | x0, |
qreal | y0, | ||
const uchar * | image_data, | ||
int | bpl, | ||
int | w, | ||
int | h, | ||
QPainterPath * | path | ||
) |
Definition at line 487 of file qfontengine.cpp.
Referenced by QFontEngine::addBitmapFontToPath(), QFreetypeFace::addBitmapToPath(), QFreetypeFace::addGlyphToPath(), and QFontEngineXLFD::addOutlineToPath().
|
inlinestatic |
Definition at line 55 of file qfontengine.cpp.
Referenced by QFontEngine::glyphCache().
Definition at line 1315 of file qfontengine.cpp.
Referenced by QFontEngineMulti::addOutlineToPath(), QCoreApplication::arguments(), QFontEngineMulti::boundingBox(), QFontEngineMulti::doKerning(), QFontEngineMulti::getGlyphBearings(), QFontEngineMulti::recalcAdvances(), QSpinBoxPrivate::validateAndInterpret(), and QDoubleSpinBoxPrivate::validateAndInterpret().
|
static |
Definition at line 161 of file qfontengine.cpp.
Referenced by QFontEngine::QFontEngine().