Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qfontengine_coretext.mm File Reference

(6fc0f4ccb4a90a29c2af89ffd127ec38fd4e7ac9)

#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 <Accelerate/Accelerate.h>
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
[3]
return ret
constexpr T qAbs(const T &t)
Definition qnumeric.h:506
GLsizei GLsizei GLfloat distance

Function Documentation

◆ convertCGPathToQPainterPath()

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

Definition at line 517 of file qfontengine_coretext.mm.

◆ qcoretextfontengine_scaleMetrics()

void qcoretextfontengine_scaleMetrics ( glyph_metrics_t & br,
const QTransform & matrix )
static

Definition at line 572 of file qfontengine_coretext.mm.

◆ qt_scaleForTransform()

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

Definition at line 2132 of file qtransform.cpp.

◆ qt_transform_from_fontdef()

CGAffineTransform qt_transform_from_fontdef ( const QFontDef & fontDef)

Definition at line 107 of file qfontengine_coretext.mm.

Variable Documentation

◆ SYNTHETIC_ITALIC_SKEW

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

Definition at line 59 of file qfontengine_coretext.mm.