Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qfontengine_coretext.mm File Reference
#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 <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 435 of file qfontengine_coretext.mm.

References QPainterPath::closeSubpath(), QPainterPath::cubicTo(), info, QPainterPath::lineTo(), QPainterPath::moveTo(), ConvertPathInfo::path, ConvertPathInfo::pos, qCWarning, QPainterPath::quadTo(), ConvertPathInfo::stretch, QPointF::x(), and QPointF::y().

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 490 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 
)

Definition at line 2301 of file qtransform.cpp.

◆ qt_transform_from_fontdef()

CGAffineTransform qt_transform_from_fontdef ( const QFontDef fontDef)

Definition at line 101 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