Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qfontengine_ft_p.h>
Public Types | |
enum | { cmapCacheSize = 0x200 } |
Public Member Functions | |
void | computeSize (const QFontDef &fontDef, int *xsize, int *ysize, bool *outline_drawing, QFixed *scalableBitmapScaleFactor) |
QFontEngine::Properties | properties () const |
bool | getSfntTable (uint tag, uchar *buffer, uint *length) const |
void | release (const QFontEngine::FaceId &face_id) |
void | lock () |
void | unlock () |
int | fsType () const |
int | getPointInOutline (glyph_t glyph, int flags, quint32 point, QFixed *xpos, QFixed *ypos, quint32 *nPoints) |
bool | isScalable () const |
bool | isScalableBitmap () const |
Static Public Member Functions | |
static QFreetypeFace * | getFace (const QFontEngine::FaceId &face_id, const QByteArray &fontData=QByteArray()) |
static int | getFaceIndexByStyleName (const QString &faceFileName, const QString &styleName) |
static void | addGlyphToPath (FT_Face face, FT_GlyphSlot g, const QFixedPoint &point, QPainterPath *path, FT_Fixed x_scale, FT_Fixed y_scale) |
static void | addBitmapToPath (FT_GlyphSlot slot, const QFixedPoint &point, QPainterPath *path) |
Public Attributes | |
FT_Face | face |
FT_MM_Var * | mm_var |
int | xsize |
int | ysize |
FT_Matrix | matrix |
FT_CharMap | unicode_map |
FT_CharMap | symbol_map |
glyph_t | cmapCache [cmapCacheSize] |
Friends | |
class | QFontEngineFT |
class | QtFreetypeData |
Definition at line 42 of file qfontengine_ft_p.h.
anonymous enum |
Enumerator | |
---|---|
cmapCacheSize |
Definition at line 73 of file qfontengine_ft_p.h.
|
static |
Definition at line 660 of file qfontengine_ft.cpp.
References qt_addBitmapToPath(), QFixedPoint::toPointF(), TRUNC, QPointF::x(), and QPointF::y().
Referenced by QFontEngineFT::addOutlineToPath(), and QFontEngineFT::getUnscaledGlyph().
|
static |
Definition at line 566 of file qfontengine_ft.cpp.
References GLYPH2PATH_DEBUG, i, j, scaleOutline(), and QFixedPoint::toPointF().
Referenced by QFontEngineFT::addGlyphsToPath(), and QFontEngineFT::getUnscaledGlyph().
void QFreetypeFace::computeSize | ( | const QFontDef & | fontDef, |
int * | xsize, | ||
int * | ysize, | ||
bool * | outline_drawing, | ||
QFixed * | scalableBitmapScaleFactor ) |
Definition at line 454 of file qfontengine_ft.cpp.
References QFixed::fromReal(), i, isScalableBitmap(), QFontDef::pixelSize, qAbs(), qRound(), QT_MAX_CACHED_GLYPH_SIZE, QFontDef::stretch, xsize, and ysize.
Referenced by QFontEngineFT::init().
int QFreetypeFace::fsType | ( | ) | const |
Definition at line 163 of file qfontengine_ft.cpp.
References fsType().
Referenced by fsType(), and QFontEngineFT::init().
|
static |
Definition at line 216 of file qfontengine_ft.cpp.
References QMap< Key, T >::constEnd(), QMap< Key, T >::constFind(), QVariant::data(), QFile::decodeName(), QSet< T >::end(), face, file, QFontEngine::FaceId::filename, fileName, QSet< T >::find(), i, QFontEngine::FaceId::index, QFontEngine::FaceId::instanceIndex, QMap< Key, T >::isEmpty(), QByteArray::isEmpty(), it, QBasicAtomicInteger< T >::loadRelaxed(), ok, QFile::open(), Q_ASSERT, QByteArray(), qCDebug, QT_CATCH, qt_fontdata_from_index(), qt_getFreetype(), qt_getFreetypeData(), QT_RETHROW, QT_TRY, QIODevice::readAll(), QIODeviceBase::ReadOnly, QBasicAtomicInteger< T >::ref(), release(), QByteArray::remove(), QByteArray::startsWith(), tag, QByteArray::toInt(), var, and QFontEngine::FaceId::variableAxes.
Referenced by QFontEngineFT::init().
|
static |
Definition at line 436 of file qfontengine_ft.cpp.
References computeFaceIndex(), and qt_getFreetypeData().
Referenced by QCoreTextFontDatabaseEngineFactory< T >::fontEngine().
int QFreetypeFace::getPointInOutline | ( | glyph_t | glyph, |
int | flags, | ||
quint32 | point, | ||
QFixed * | xpos, | ||
QFixed * | ypos, | ||
quint32 * | nPoints ) |
Definition at line 172 of file qfontengine_ft.cpp.
References Err_Invalid_SubTable, Err_Ok, error, and QFixed::fromFixed().
Referenced by QFontEngineFT::getPointInOutline().
Definition at line 538 of file qfontengine_ft.cpp.
References ft_getSfntTable(), and tag.
bool QFreetypeFace::isScalable | ( | ) | const |
Definition at line 193 of file qfontengine_ft.cpp.
Referenced by isScalableBitmap(), and QFontEngineFT::supportsTransformation().
bool QFreetypeFace::isScalableBitmap | ( | ) | const |
Definition at line 198 of file qfontengine_ft.cpp.
References isScalable().
Referenced by computeSize(), and QFontEngineFT::supportsTransformation().
|
inline |
Definition at line 56 of file qfontengine_ft_p.h.
Referenced by QFontEngineFT::lockFace().
QFontEngine::Properties QFreetypeFace::properties | ( | ) | const |
Definition at line 507 of file qfontengine_ft.cpp.
References QFixed::fromFixed(), and QFontEngine::Properties::postscriptName.
Referenced by QFontEngineFT::properties().
void QFreetypeFace::release | ( | const QFontEngine::FaceId & | face_id | ) |
Definition at line 373 of file qfontengine_ft.cpp.
References QSet< T >::constBegin(), QSet< T >::constEnd(), QSet< T >::erase(), it, Q_UNUSED, and qt_getFreetypeData().
Referenced by QFontEngineFT::~QFontEngineFT(), and getFace().
|
inline |
Definition at line 60 of file qfontengine_ft_p.h.
Referenced by QFontEngineFT::unlockFace().
|
friend |
Definition at line 87 of file qfontengine_ft_p.h.
|
friend |
Definition at line 88 of file qfontengine_ft_p.h.
glyph_t QFreetypeFace::cmapCache[cmapCacheSize] |
Definition at line 74 of file qfontengine_ft_p.h.
Referenced by QFontEngineFT::glyphIndex(), and QFontEngineFT::stringToCMap().
FT_Face QFreetypeFace::face |
Definition at line 65 of file qfontengine_ft_p.h.
Referenced by QFontEngineFT::addOutlineToPath(), QFontEngineFT::alphaMapBoundingBox(), QFontEngineFT::alphaMapForGlyph(), QFontEngineFT::averageCharWidth(), QFontEngineFT::capHeight(), QFontEngineFT::doKerning(), QFontEngineFT::emSquareSize(), getFace(), QFontEngineFT::getSfntTableData(), QFontEngineFT::getUnscaledGlyph(), QFontEngineFT::glyphIndex(), QFontEngineFT::init(), QFontEngineFT::loadGlyph(), QFontEngineFT::loadGlyphSet(), QFontEngineFT::lockFace(), QFontEngineFT::non_locked_face(), QFontEngineFT::stringToCMap(), QFontEngineFT::synthesized(), and QFontEngineFT::xHeight().
FT_Matrix QFreetypeFace::matrix |
Definition at line 69 of file qfontengine_ft_p.h.
Referenced by QFontEngineFT::getUnscaledGlyph(), QFontEngineFT::init(), QFontEngineFT::loadGlyph(), QFontEngineFT::loadGlyphFor(), and QFontEngineFT::lockFace().
FT_MM_Var* QFreetypeFace::mm_var |
Definition at line 66 of file qfontengine_ft_p.h.
FT_CharMap QFreetypeFace::symbol_map |
Definition at line 71 of file qfontengine_ft_p.h.
Referenced by QFontEngineFT::glyphIndex(), QFontEngineFT::init(), and QFontEngineFT::stringToCMap().
FT_CharMap QFreetypeFace::unicode_map |
Definition at line 70 of file qfontengine_ft_p.h.
Referenced by QFontEngineFT::glyphIndex(), and QFontEngineFT::stringToCMap().
int QFreetypeFace::xsize |
Definition at line 67 of file qfontengine_ft_p.h.
Referenced by computeSize(), and QFontEngineFT::lockFace().
int QFreetypeFace::ysize |
Definition at line 68 of file qfontengine_ft_p.h.
Referenced by computeSize(), and QFontEngineFT::lockFace().