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_coretext_p.h"
#include <qpa/qplatformfontdatabase.h>
#include <QtCore/qendian.h>
#include <QtCore/qoperatingsystemversion.h>
#include <QtGui/qpainterpath.h>
#include <private/qcoregraphics_p.h>
#include <private/qimage_p.h>
#include <private/qguiapplication_p.h>
#include <private/qstringiterator_p.h>
#include <qpa/qplatformtheme.h>
#include <cmath>
Go to the source code of this file.
Classes | |
class | QCoreTextRawFontEngine |
struct | ConvertPathInfo |
Macros | |
#define | COMPARE_WEIGHT_DISTANCE(ct_weight, qt_weight) |
Functions | |
CGAffineTransform | qt_transform_from_fontdef (const QFontDef &fontDef) |
Q_GUI_EXPORT bool | qt_scaleForTransform (const QTransform &transform, qreal *scale) |
static void | convertCGPathToQPainterPath (void *info, const CGPathElement *element) |
static void | qcoretextfontengine_scaleMetrics (glyph_metrics_t &br, const QTransform &matrix) |
Variables | |
static QT_BEGIN_NAMESPACE float | SYNTHETIC_ITALIC_SKEW = std::tan(14.f * std::acos(0.f) / 90.f) |
#define COMPARE_WEIGHT_DISTANCE | ( | ct_weight, | |
qt_weight ) |
Definition at line 444 of file qfontengine_coretext.mm.
References info, QPainterPath::moveTo(), ConvertPathInfo::path, and qCWarning.
Referenced by QCoreTextFontEngine::addGlyphsToPath(), and QCoreTextFontEngine::getUnscaledGlyph().
|
static |
Definition at line 499 of file qfontengine_coretext.mm.
References QFixed::fromReal(), glyph_metrics_t::height, QFixed::toReal(), glyph_metrics_t::width, glyph_metrics_t::x, and glyph_metrics_t::y.
Referenced by QCoreTextFontEngine::alphaMapBoundingBox().
|
extern |
Definition at line 2148 of file qtransform.cpp.
CGAffineTransform qt_transform_from_fontdef | ( | const QFontDef & | fontDef | ) |
Definition at line 104 of file qfontengine_coretext.mm.
References QFontDef::stretch.
Referenced by QCoreTextFontEngine::QCoreTextFontEngine(), and QCoreTextFontDatabaseEngineFactory< T >::fontEngine().
|
static |
Definition at line 56 of file qfontengine_coretext.mm.
Referenced by QCoreTextFontEngine::addGlyphsToPath(), QCoreTextFontEngine::boundingBox(), QCoreTextFontEngine::draw(), and QCoreTextFontEngine::imageForGlyph().