![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qsvgfont_p.h>
Public Member Functions | |
| QSvgFont (qreal horizAdvX) | |
| void | setFamilyName (const QString &name) |
| QString | familyName () const |
| void | setUnitsPerEm (qreal upem) |
| void | addGlyph (const QString &unicode, const QPainterPath &path, qreal horizAdvX=-1) |
| bool | addMissingGlyph (const QPainterPath &path, qreal horizAdvX) |
| void | draw (QPainter *p, const QPointF &point, const QList< const QSvgGlyph * > &glyphs, qreal pixelSize, Qt::Alignment alignment) const |
| QRectF | boundingRect (QPainter *p, const QPointF &point, const QList< const QSvgGlyph * > &glyphs, qreal pixelSize, Qt::Alignment alignment) const |
| const QSvgGlyph * | findFirstGlyphFor (QStringView text) const |
| QList< const QSvgGlyph * > | toGlyphs (QStringView text) 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 QSvgGlyph > | m_missingGlyph |
| QList< QSvgGlyph > | m_glyphs |
Static Public Attributes | |
| static constexpr qreal | DEFAULT_UNITS_PER_EM = 1000 |
Definition at line 41 of file qsvgfont_p.h.
| QSvgFont::QSvgFont | ( | qreal | horizAdvX | ) |
Definition at line 21 of file qsvgfont.cpp.
| void QSvgFont::addGlyph | ( | const QString & | unicode, |
| const QPainterPath & | path, | ||
| qreal | horizAdvX = -1 ) |
Definition at line 33 of file qsvgfont.cpp.
| bool QSvgFont::addMissingGlyph | ( | const QPainterPath & | path, |
| qreal | horizAdvX ) |
Definition at line 38 of file qsvgfont.cpp.
| QRectF QSvgFont::boundingRect | ( | QPainter * | p, |
| const QPointF & | point, | ||
| const QList< const QSvgGlyph * > & | glyphs, | ||
| qreal | pixelSize, | ||
| Qt::Alignment | alignment ) const |
Definition at line 55 of file qsvgfont.cpp.
| void QSvgFont::draw | ( | QPainter * | p, |
| const QPointF & | point, | ||
| const QList< const QSvgGlyph * > & | glyphs, | ||
| qreal | pixelSize, | ||
| Qt::Alignment | alignment ) const |
Definition at line 49 of file qsvgfont.cpp.
| QString QSvgFont::familyName | ( | ) | const |
Definition at line 27 of file qsvgfont.cpp.
| const QSvgGlyph * QSvgFont::findFirstGlyphFor | ( | QStringView | text | ) | const |
Definition at line 75 of file qsvgfont.cpp.
Definition at line 170 of file qsvgfont.cpp.
Definition at line 175 of file qsvgfont.cpp.
| QList< const QSvgGlyph * > QSvgFont::toGlyphs | ( | QStringView | text | ) | const |
Definition at line 96 of file qsvgfont.cpp.
|
staticconstexpr |
Definition at line 44 of file qsvgfont_p.h.
| QString QSvgFont::m_familyName |
Definition at line 63 of file qsvgfont_p.h.
Definition at line 72 of file qsvgfont_p.h.
| qreal QSvgFont::m_horizAdvX |
Definition at line 65 of file qsvgfont_p.h.
| std::unique_ptr<const QSvgGlyph> QSvgFont::m_missingGlyph |
Definition at line 67 of file qsvgfont_p.h.
| qreal QSvgFont::m_unitsPerEm = DEFAULT_UNITS_PER_EM |
Definition at line 64 of file qsvgfont_p.h.