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>.
Loading...
Searching...
No Matches
qfontengine_coretext.mm File Reference

(1593b1f6d610ce9bdb9dff4104f7f447e03a9585)

#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>
+ Include dependency graph for qfontengine_coretext.mm:

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)
 

Macro Definition Documentation

◆ COMPARE_WEIGHT_DISTANCE

#define COMPARE_WEIGHT_DISTANCE ( ct_weight,
qt_weight )
Value:
{ \
float d; \
if ((d = qAbs(value - ct_weight)) < distance) { \
distance = d; \
ret = qt_weight; \
} \
}
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
return ret
constexpr T qAbs(const T &t)
Definition qnumeric.h:328
GLsizei GLsizei GLfloat distance

Function Documentation

◆ convertCGPathToQPainterPath()

static void convertCGPathToQPainterPath ( void * info,
const CGPathElement * element )
static

Definition at line 444 of file qfontengine_coretext.mm.

References info, QPainterPath::moveTo(), ConvertPathInfo::path, and qCWarning.

Referenced by QCoreTextFontEngine::addGlyphsToPath(), and QCoreTextFontEngine::getUnscaledGlyph().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qcoretextfontengine_scaleMetrics()

static void qcoretextfontengine_scaleMetrics ( glyph_metrics_t & br,
const QTransform & matrix )
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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ qt_scaleForTransform()

Q_GUI_EXPORT bool qt_scaleForTransform ( const QTransform & transform,
qreal * scale )
extern

Definition at line 2148 of file qtransform.cpp.

◆ qt_transform_from_fontdef()

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().

+ Here is the caller graph for this function:

Variable Documentation

◆ SYNTHETIC_ITALIC_SKEW

QT_BEGIN_NAMESPACE float SYNTHETIC_ITALIC_SKEW = std::tan(14.f * std::acos(0.f) / 90.f)
static