Qt 4.8
|
#include <qsvgfont_p.h>
Public Functions | |
void | addGlyph (QChar unicode, const QPainterPath &path, qreal horizAdvX=-1) |
void | draw (QPainter *p, const QPointF &point, const QString &str, qreal pixelSize, Qt::Alignment alignment) const |
QString | familyName () const |
QSvgFont (qreal horizAdvX) | |
void | setFamilyName (const QString &name) |
void | setUnitsPerEm (qreal upem) |
Public Functions inherited from QSvgRefCounted | |
void | deref () |
QSvgRefCounted () | |
void | ref () |
virtual | ~QSvgRefCounted () |
Public Variables | |
qreal | m_ascent |
qreal | m_descent |
QString | m_familyName |
QHash< QChar, QSvgGlyph > | m_glyphs |
qreal | m_horizAdvX |
qreal | m_unitsPerEm |
Definition at line 78 of file qsvgfont_p.h.
QSvgFont::QSvgFont | ( | qreal | horizAdvX | ) |
Definition at line 60 of file qsvgfont.cpp.
void QSvgFont::addGlyph | ( | QChar | unicode, |
const QPainterPath & | path, | ||
qreal | horizAdvX = -1 |
||
) |
Definition at line 72 of file qsvgfont.cpp.
Referenced by createSvgGlyph().
void QSvgFont::draw | ( | QPainter * | p, |
const QPointF & | point, | ||
const QString & | str, | ||
qreal | pixelSize, | ||
Qt::Alignment | alignment | ||
) | const |
Definition at line 79 of file qsvgfont.cpp.
Referenced by QSvgText::draw().
QString QSvgFont::familyName | ( | ) | const |
Definition at line 66 of file qsvgfont.cpp.
Referenced by QSvgTinyDocument::addSvgFont(), createFontNode(), parseFontFaceNameNode(), and parseFontFaceNode().
void QSvgFont::setFamilyName | ( | const QString & | name | ) |
Definition at line 130 of file qsvgfont.cpp.
Referenced by createFontNode(), parseFontFaceNameNode(), and parseFontFaceNode().
void QSvgFont::setUnitsPerEm | ( | qreal | upem | ) |
qreal QSvgFont::m_ascent |
Definition at line 94 of file qsvgfont_p.h.
qreal QSvgFont::m_descent |
Definition at line 95 of file qsvgfont_p.h.
QString QSvgFont::m_familyName |
Definition at line 92 of file qsvgfont_p.h.
Referenced by familyName(), and setFamilyName().
Definition at line 97 of file qsvgfont_p.h.
Referenced by addGlyph(), and draw().
qreal QSvgFont::m_horizAdvX |
Definition at line 96 of file qsvgfont_p.h.
Referenced by addGlyph(), and draw().
qreal QSvgFont::m_unitsPerEm |
Definition at line 93 of file qsvgfont_p.h.
Referenced by draw(), and setUnitsPerEm().