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
QSvgFont Class Reference

#include <qsvgfont_p.h>

Inheritance diagram for QSvgFont:
Collaboration diagram for QSvgFont:

Public Member Functions

 QSvgFont (qreal horizAdvX)
void setFamilyName (const QString &name)
QString familyName () const
void setUnitsPerEm (qreal upem)
void addGlyph (QChar unicode, const QPainterPath &path, qreal horizAdvX=-1)
bool addMissingGlyph (const QPainterPath &path, qreal horizAdvX)
void draw (QPainter *p, const QPointF &point, const QString &str, qreal pixelSize, Qt::Alignment alignment) const
QRectF boundingRect (QPainter *p, const QPointF &point, const QString &str, qreal pixelSize, Qt::Alignment alignment) const
Public Member Functions inherited from QSvgRefCounted
 QSvgRefCounted ()
virtual ~QSvgRefCounted ()
void ref ()
void deref ()

Public Attributes

QString m_familyName
qreal m_unitsPerEm = DEFAULT_UNITS_PER_EM
qreal m_horizAdvX
std::unique_ptr< const QSvgGlyphm_missingGlyph
QHash< QChar, QSvgGlyphm_glyphs

Static Public Attributes

static constexpr qreal DEFAULT_UNITS_PER_EM = 1000

Detailed Description

Definition at line 40 of file qsvgfont_p.h.

Constructor & Destructor Documentation

◆ QSvgFont()

QSvgFont::QSvgFont ( qreal horizAdvX)

Definition at line 20 of file qsvgfont.cpp.

Member Function Documentation

◆ addGlyph()

void QSvgFont::addGlyph ( QChar unicode,
const QPainterPath & path,
qreal horizAdvX = -1 )

Definition at line 32 of file qsvgfont.cpp.

◆ addMissingGlyph()

bool QSvgFont::addMissingGlyph ( const QPainterPath & path,
qreal horizAdvX )

Definition at line 38 of file qsvgfont.cpp.

◆ boundingRect()

QRectF QSvgFont::boundingRect ( QPainter * p,
const QPointF & point,
const QString & str,
qreal pixelSize,
Qt::Alignment alignment ) const

Definition at line 55 of file qsvgfont.cpp.

◆ draw()

void QSvgFont::draw ( QPainter * p,
const QPointF & point,
const QString & str,
qreal pixelSize,
Qt::Alignment alignment ) const

Definition at line 49 of file qsvgfont.cpp.

◆ familyName()

QString QSvgFont::familyName ( ) const

Definition at line 26 of file qsvgfont.cpp.

◆ setFamilyName()

void QSvgFont::setFamilyName ( const QString & name)

Definition at line 132 of file qsvgfont.cpp.

◆ setUnitsPerEm()

void QSvgFont::setUnitsPerEm ( qreal upem)

Definition at line 137 of file qsvgfont.cpp.

Member Data Documentation

◆ DEFAULT_UNITS_PER_EM

qreal QSvgFont::DEFAULT_UNITS_PER_EM = 1000
staticconstexpr

Definition at line 43 of file qsvgfont_p.h.

◆ m_familyName

QString QSvgFont::m_familyName

Definition at line 60 of file qsvgfont_p.h.

◆ m_glyphs

QHash<QChar, QSvgGlyph> QSvgFont::m_glyphs

Definition at line 65 of file qsvgfont_p.h.

◆ m_horizAdvX

qreal QSvgFont::m_horizAdvX

Definition at line 62 of file qsvgfont_p.h.

◆ m_missingGlyph

std::unique_ptr<const QSvgGlyph> QSvgFont::m_missingGlyph

Definition at line 64 of file qsvgfont_p.h.

◆ m_unitsPerEm

qreal QSvgFont::m_unitsPerEm = DEFAULT_UNITS_PER_EM

Definition at line 61 of file qsvgfont_p.h.


The documentation for this class was generated from the following files: