QRawFont Class Reference

#include <qrawfont.h>

Class Description

Definition at line 63 of file qrawfont.h.

Public Types

enum  AntialiasingType { PixelAntialiasing, SubPixelAntialiasing }
 

Public Member Functions

 QRawFont ()
 
 QRawFont (const QString &fileName, qreal pixelSize, QFont::HintingPreference hintingPreference=QFont::PreferDefaultHinting)
 
 QRawFont (const QByteArray &fontData, qreal pixelSize, QFont::HintingPreference hintingPreference=QFont::PreferDefaultHinting)
 
 QRawFont (const QRawFont &other)
 
 ~QRawFont ()
 
bool isValid () const
 
QRawFontoperator= (const QRawFont &other)
 
bool operator== (const QRawFont &other) const
 
bool operator!= (const QRawFont &other) const
 
QString familyName () const
 
QString styleName () const
 
QFont::Style style () const
 
int weight () const
 
QVector< quint32glyphIndexesForString (const QString &text) const
 
QVector< QPointFadvancesForGlyphIndexes (const QVector< quint32 > &glyphIndexes) const
 
bool glyphIndexesForChars (const QChar *chars, int numChars, quint32 *glyphIndexes, int *numGlyphs) const
 
bool advancesForGlyphIndexes (const quint32 *glyphIndexes, QPointF *advances, int numGlyphs) const
 
QImage alphaMapForGlyph (quint32 glyphIndex, AntialiasingType antialiasingType=SubPixelAntialiasing, const QTransform &transform=QTransform()) const
 
QPainterPath pathForGlyph (quint32 glyphIndex) const
 
void setPixelSize (qreal pixelSize)
 
qreal pixelSize () const
 
QFont::HintingPreference hintingPreference () const
 
qreal ascent () const
 
qreal descent () const
 
qreal leading () const
 
qreal xHeight () const
 
qreal averageCharWidth () const
 
qreal maxCharWidth () const
 
qreal unitsPerEm () const
 
void loadFromFile (const QString &fileName, qreal pixelSize, QFont::HintingPreference hintingPreference)
 
void loadFromData (const QByteArray &fontData, qreal pixelSize, QFont::HintingPreference hintingPreference)
 
bool supportsCharacter (quint32 ucs4) const
 
bool supportsCharacter (QChar character) const
 
QList< QFontDatabase::WritingSystemsupportedWritingSystems () const
 
QByteArray fontTable (const char *tagName) const
 

Static Public Member Functions

static QRawFont fromFont (const QFont &font, QFontDatabase::WritingSystem writingSystem=QFontDatabase::Any)
 

Friends

class QRawFontPrivate
 

Member Enumeration Documentation

Enumerator
PixelAntialiasing 
SubPixelAntialiasing 

Definition at line 66 of file qrawfont.h.

Constructor & Destructor Documentation

QRawFont ( )
QRawFont ( const QString fileName,
qreal  pixelSize,
QFont::HintingPreference  hintingPreference = QFont::PreferDefaultHinting 
)
QRawFont ( const QByteArray fontData,
qreal  pixelSize,
QFont::HintingPreference  hintingPreference = QFont::PreferDefaultHinting 
)
QRawFont ( const QRawFont other)
~QRawFont ( )

Member Function Documentation

bool isValid ( ) const
QRawFont& operator= ( const QRawFont other)
bool operator== ( const QRawFont other) const
bool operator!= ( const QRawFont other) const
inline

Definition at line 86 of file qrawfont.h.

87  { return !operator==(other); }
bool operator==(const QRawFont &other) const
QString familyName ( ) const
QString styleName ( ) const
QFont::Style style ( ) const
int weight ( ) const
QVector<quint32> glyphIndexesForString ( const QString text) const
QVector<QPointF> advancesForGlyphIndexes ( const QVector< quint32 > &  glyphIndexes) const
bool glyphIndexesForChars ( const QChar chars,
int  numChars,
quint32 glyphIndexes,
int numGlyphs 
) const
bool advancesForGlyphIndexes ( const quint32 glyphIndexes,
QPointF advances,
int  numGlyphs 
) const
QImage alphaMapForGlyph ( quint32  glyphIndex,
AntialiasingType  antialiasingType = SubPixelAntialiasing,
const QTransform transform = QTransform() 
) const
QPainterPath pathForGlyph ( quint32  glyphIndex) const
void setPixelSize ( qreal  pixelSize)
qreal pixelSize ( ) const
QFont::HintingPreference hintingPreference ( ) const
qreal ascent ( ) const
qreal descent ( ) const
qreal leading ( ) const
qreal xHeight ( ) const
qreal averageCharWidth ( ) const
qreal maxCharWidth ( ) const
qreal unitsPerEm ( ) const
void loadFromFile ( const QString fileName,
qreal  pixelSize,
QFont::HintingPreference  hintingPreference 
)
void loadFromData ( const QByteArray fontData,
qreal  pixelSize,
QFont::HintingPreference  hintingPreference 
)
bool supportsCharacter ( quint32  ucs4) const
bool supportsCharacter ( QChar  character) const
QList<QFontDatabase::WritingSystem> supportedWritingSystems ( ) const
QByteArray fontTable ( const char *  tagName) const
static QRawFont fromFont ( const QFont font,
QFontDatabase::WritingSystem  writingSystem = QFontDatabase::Any 
)
static

Friends And Related Function Documentation

friend class QRawFontPrivate
friend

Definition at line 137 of file qrawfont.h.


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