Notation used in Ruby API documentation
Module: QtGui
Description: Binding of QRawFont
Sub-classes: AntialiasingType, QFlags_AntialiasingType, LayoutFlag, QFlags_LayoutFlag
new QRawFont | new | Constructor QRawFont::QRawFont() | |
new QRawFont | new | (string fileName, double pixelSize, const QFont_HintingPreference hintingPreference = QFont::PreferDefaultHinting) | Constructor QRawFont::QRawFont(const QString &fileName, double pixelSize, QFont::HintingPreference hintingPreference) |
new QRawFont | new | (bytes fontData, double pixelSize, const QFont_HintingPreference hintingPreference = QFont::PreferDefaultHinting) | Constructor QRawFont::QRawFont(const QByteArray &fontData, double pixelSize, QFont::HintingPreference hintingPreference) |
new QRawFont | new | (const QRawFont other) | Constructor QRawFont::QRawFont(const QRawFont &other) |
[const] | bool | != | (const QRawFont other) | Method bool QRawFont::operator!=(const QRawFont &other) |
[const] | bool | == | (const QRawFont other) | Method bool QRawFont::operator==(const QRawFont &other) |
void | _assign | (const QRawFont other) | Assigns another object to self | |
[const] | QRawFont ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
[const] | QPointF[] | advancesForGlyphIndexes | (unsigned int[] glyphIndexes) | Method QVector<QPointF> QRawFont::advancesForGlyphIndexes(const QVector<quint32> &glyphIndexes) |
[const] | QPointF[] | advancesForGlyphIndexes | (unsigned int[] glyphIndexes, QRawFont_QFlags_LayoutFlag layoutFlags) | Method QVector<QPointF> QRawFont::advancesForGlyphIndexes(const QVector<quint32> &glyphIndexes, QFlags<QRawFont::LayoutFlag> layoutFlags) |
[const] | bool | advancesForGlyphIndexes | (unsigned int ptr glyphIndexes, QPointF ptr advances, int numGlyphs) | Method bool QRawFont::advancesForGlyphIndexes(const quint32 *glyphIndexes, QPointF *advances, int numGlyphs) |
[const] | bool | advancesForGlyphIndexes | (unsigned int ptr glyphIndexes, QPointF ptr advances, int numGlyphs, QRawFont_QFlags_LayoutFlag layoutFlags) | Method bool QRawFont::advancesForGlyphIndexes(const quint32 *glyphIndexes, QPointF *advances, int numGlyphs, QFlags<QRawFont::LayoutFlag> layoutFlags) |
[const] | QImage | alphaMapForGlyph | (unsigned int glyphIndex, const QRawFont_AntialiasingType antialiasingType = QRawFont::SubPixelAntialiasing, const QTransform transform = QTransform()) | Method QImage QRawFont::alphaMapForGlyph(quint32 glyphIndex, QRawFont::AntialiasingType antialiasingType, const QTransform &transform) |
[const] | double | ascent | Method double QRawFont::ascent() | |
QRawFont | assign | (const QRawFont other) | Method QRawFont &QRawFont::operator=(const QRawFont &other) | |
[const] | double | averageCharWidth | Method double QRawFont::averageCharWidth() | |
[const] | QRectF | boundingRect | (unsigned int glyphIndex) | Method QRectF QRawFont::boundingRect(quint32 glyphIndex) |
[const] | double | capHeight | Method double QRawFont::capHeight() | |
[const] | double | descent | Method double QRawFont::descent() | |
[const] | new QRawFont ptr | dup | Creates a copy of self | |
[const] | string | familyName | Method QString QRawFont::familyName() | |
[const] | bytes | fontTable | (string tagName) | Method QByteArray QRawFont::fontTable(const char *tagName) |
[const] | bool | glyphIndexesForChars | (unsigned int ptr chars, int numChars, unsigned int ptr glyphIndexes, int ptr numGlyphs) | Method bool QRawFont::glyphIndexesForChars(const QChar *chars, int numChars, quint32 *glyphIndexes, int *numGlyphs) |
[const] | unsigned int[] | glyphIndexesForString | (string text) | Method QVector<quint32> QRawFont::glyphIndexesForString(const QString &text) |
[const] | QFont_HintingPreference | hintingPreference | Method QFont::HintingPreference QRawFont::hintingPreference() | |
[const] | bool | isValid? | Method bool QRawFont::isValid() | |
[const] | double | leading | Method double QRawFont::leading() | |
[const] | double | lineThickness | Method double QRawFont::lineThickness() | |
void | loadFromData | (bytes fontData, double pixelSize, const QFont_HintingPreference hintingPreference) | Method void QRawFont::loadFromData(const QByteArray &fontData, double pixelSize, QFont::HintingPreference hintingPreference) | |
void | loadFromFile | (string fileName, double pixelSize, const QFont_HintingPreference hintingPreference) | Method void QRawFont::loadFromFile(const QString &fileName, double pixelSize, QFont::HintingPreference hintingPreference) | |
[const] | double | maxCharWidth | Method double QRawFont::maxCharWidth() | |
[const] | QPainterPath | pathForGlyph | (unsigned int glyphIndex) | Method QPainterPath QRawFont::pathForGlyph(quint32 glyphIndex) |
[const] | double | pixelSize | Method double QRawFont::pixelSize() | |
void | pixelSize= | (double pixelSize) | Method void QRawFont::setPixelSize(double pixelSize) | |
void | setPixelSize | (double pixelSize) | Method void QRawFont::setPixelSize(double pixelSize) | |
[const] | QFont_Style | style | Method QFont::Style QRawFont::style() | |
[const] | string | styleName | Method QString QRawFont::styleName() | |
[const] | QFontDatabase_WritingSystem[] | supportedWritingSystems | Method QList<QFontDatabase::WritingSystem> QRawFont::supportedWritingSystems() | |
[const] | bool | supportsCharacter | (unsigned int character) | Method bool QRawFont::supportsCharacter(QChar character) |
[const] | bool | supportsCharacter_ucs4 | (unsigned int ucs4) | Method bool QRawFont::supportsCharacter(unsigned int ucs4) |
void | swap | (QRawFont other) | Method void QRawFont::swap(QRawFont &other) | |
[const] | double | underlinePosition | Method double QRawFont::underlinePosition() | |
[const] | double | unitsPerEm | Method double QRawFont::unitsPerEm() | |
[const] | int | weight | Method int QRawFont::weight() | |
[const] | double | xHeight | Method double QRawFont::xHeight() |
[static,const] | QRawFont_LayoutFlag | KernedAdvances | Enum constant QRawFont::KernedAdvances | |
[static,const] | QRawFont_AntialiasingType | PixelAntialiasing | Enum constant QRawFont::PixelAntialiasing | |
[static,const] | QRawFont_LayoutFlag | SeparateAdvances | Enum constant QRawFont::SeparateAdvances | |
[static,const] | QRawFont_AntialiasingType | SubPixelAntialiasing | Enum constant QRawFont::SubPixelAntialiasing | |
[static,const] | QRawFont_LayoutFlag | UseDesignMetrics | Enum constant QRawFont::UseDesignMetrics | |
QRawFont | fromFont | (const QFont font, const QFontDatabase_WritingSystem writingSystem = QFontDatabase::Any) | Static method QRawFont QRawFont::fromFont(const QFont &font, QFontDatabase::WritingSystem writingSystem) |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
!= | Signature: [const] bool != (const QRawFont other) Description: Method bool QRawFont::operator!=(const QRawFont &other) |
== | Signature: [const] bool == (const QRawFont other) Description: Method bool QRawFont::operator==(const QRawFont &other) |
KernedAdvances | Signature: [static,const] QRawFont_LayoutFlag KernedAdvances Description: Enum constant QRawFont::KernedAdvances Python specific notes: |
PixelAntialiasing | Signature: [static,const] QRawFont_AntialiasingType PixelAntialiasing Description: Enum constant QRawFont::PixelAntialiasing Python specific notes: |
SeparateAdvances | Signature: [static,const] QRawFont_LayoutFlag SeparateAdvances Description: Enum constant QRawFont::SeparateAdvances Python specific notes: |
SubPixelAntialiasing | Signature: [static,const] QRawFont_AntialiasingType SubPixelAntialiasing Description: Enum constant QRawFont::SubPixelAntialiasing Python specific notes: |
UseDesignMetrics | Signature: [static,const] QRawFont_LayoutFlag UseDesignMetrics Description: Enum constant QRawFont::UseDesignMetrics Python specific notes: |
_assign | Signature: void _assign (const QRawFont other) Description: Assigns another object to self |
_const_cast | Signature: [const] QRawFont ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
advancesForGlyphIndexes | (1) Signature: [const] QPointF[] advancesForGlyphIndexes (unsigned int[] glyphIndexes) Description: Method QVector<QPointF> QRawFont::advancesForGlyphIndexes(const QVector<quint32> &glyphIndexes) |
(2) Signature: [const] QPointF[] advancesForGlyphIndexes (unsigned int[] glyphIndexes, QRawFont_QFlags_LayoutFlag layoutFlags) Description: Method QVector<QPointF> QRawFont::advancesForGlyphIndexes(const QVector<quint32> &glyphIndexes, QFlags<QRawFont::LayoutFlag> layoutFlags) | |
(3) Signature: [const] bool advancesForGlyphIndexes (unsigned int ptr glyphIndexes, QPointF ptr advances, int numGlyphs) Description: Method bool QRawFont::advancesForGlyphIndexes(const quint32 *glyphIndexes, QPointF *advances, int numGlyphs) | |
(4) Signature: [const] bool advancesForGlyphIndexes (unsigned int ptr glyphIndexes, QPointF ptr advances, int numGlyphs, QRawFont_QFlags_LayoutFlag layoutFlags) Description: Method bool QRawFont::advancesForGlyphIndexes(const quint32 *glyphIndexes, QPointF *advances, int numGlyphs, QFlags<QRawFont::LayoutFlag> layoutFlags) | |
alphaMapForGlyph | Signature: [const] QImage alphaMapForGlyph (unsigned int glyphIndex, const QRawFont_AntialiasingType antialiasingType = QRawFont::SubPixelAntialiasing, const QTransform transform = QTransform()) Description: Method QImage QRawFont::alphaMapForGlyph(quint32 glyphIndex, QRawFont::AntialiasingType antialiasingType, const QTransform &transform) |
ascent | Signature: [const] double ascent Description: Method double QRawFont::ascent() |
assign | Signature: QRawFont assign (const QRawFont other) Description: Method QRawFont &QRawFont::operator=(const QRawFont &other) |
averageCharWidth | Signature: [const] double averageCharWidth Description: Method double QRawFont::averageCharWidth() |
boundingRect | Signature: [const] QRectF boundingRect (unsigned int glyphIndex) Description: Method QRectF QRawFont::boundingRect(quint32 glyphIndex) |
capHeight | Signature: [const] double capHeight Description: Method double QRawFont::capHeight() |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
descent | Signature: [const] double descent Description: Method double QRawFont::descent() |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
dup | Signature: [const] new QRawFont ptr dup Description: Creates a copy of self Python specific notes: |
familyName | Signature: [const] string familyName Description: Method QString QRawFont::familyName() |
fontTable | Signature: [const] bytes fontTable (string tagName) Description: Method QByteArray QRawFont::fontTable(const char *tagName) |
fromFont | Signature: [static] QRawFont fromFont (const QFont font, const QFontDatabase_WritingSystem writingSystem = QFontDatabase::Any) Description: Static method QRawFont QRawFont::fromFont(const QFont &font, QFontDatabase::WritingSystem writingSystem) This method is static and can be called without an instance. |
glyphIndexesForChars | Signature: [const] bool glyphIndexesForChars (unsigned int ptr chars, int numChars, unsigned int ptr glyphIndexes, int ptr numGlyphs) Description: Method bool QRawFont::glyphIndexesForChars(const QChar *chars, int numChars, quint32 *glyphIndexes, int *numGlyphs) |
glyphIndexesForString | Signature: [const] unsigned int[] glyphIndexesForString (string text) Description: Method QVector<quint32> QRawFont::glyphIndexesForString(const QString &text) |
hintingPreference | Signature: [const] QFont_HintingPreference hintingPreference Description: Method QFont::HintingPreference QRawFont::hintingPreference() |
isValid? | Signature: [const] bool isValid? Description: Method bool QRawFont::isValid() |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
leading | Signature: [const] double leading Description: Method double QRawFont::leading() |
lineThickness | Signature: [const] double lineThickness Description: Method double QRawFont::lineThickness() |
loadFromData | Signature: void loadFromData (bytes fontData, double pixelSize, const QFont_HintingPreference hintingPreference) Description: Method void QRawFont::loadFromData(const QByteArray &fontData, double pixelSize, QFont::HintingPreference hintingPreference) |
loadFromFile | Signature: void loadFromFile (string fileName, double pixelSize, const QFont_HintingPreference hintingPreference) Description: Method void QRawFont::loadFromFile(const QString &fileName, double pixelSize, QFont::HintingPreference hintingPreference) |
maxCharWidth | Signature: [const] double maxCharWidth Description: Method double QRawFont::maxCharWidth() |
new | (1) Signature: [static] new QRawFont new Description: Constructor QRawFont::QRawFont() This method creates an object of class QRawFont. Python specific notes: |
(2) Signature: [static] new QRawFont new (string fileName, double pixelSize, const QFont_HintingPreference hintingPreference = QFont::PreferDefaultHinting) Description: Constructor QRawFont::QRawFont(const QString &fileName, double pixelSize, QFont::HintingPreference hintingPreference) This method creates an object of class QRawFont. Python specific notes: | |
(3) Signature: [static] new QRawFont new (bytes fontData, double pixelSize, const QFont_HintingPreference hintingPreference = QFont::PreferDefaultHinting) Description: Constructor QRawFont::QRawFont(const QByteArray &fontData, double pixelSize, QFont::HintingPreference hintingPreference) This method creates an object of class QRawFont. Python specific notes: | |
(4) Signature: [static] new QRawFont new (const QRawFont other) Description: Constructor QRawFont::QRawFont(const QRawFont &other) This method creates an object of class QRawFont. Python specific notes: | |
pathForGlyph | Signature: [const] QPainterPath pathForGlyph (unsigned int glyphIndex) Description: Method QPainterPath QRawFont::pathForGlyph(quint32 glyphIndex) |
pixelSize | Signature: [const] double pixelSize Description: Method double QRawFont::pixelSize() Python specific notes: |
pixelSize= | Signature: void pixelSize= (double pixelSize) Description: Method void QRawFont::setPixelSize(double pixelSize) Python specific notes: |
setPixelSize | Signature: void setPixelSize (double pixelSize) Description: Method void QRawFont::setPixelSize(double pixelSize) Python specific notes: |
style | Signature: [const] QFont_Style style Description: Method QFont::Style QRawFont::style() |
styleName | Signature: [const] string styleName Description: Method QString QRawFont::styleName() |
supportedWritingSystems | Signature: [const] QFontDatabase_WritingSystem[] supportedWritingSystems Description: Method QList<QFontDatabase::WritingSystem> QRawFont::supportedWritingSystems() |
supportsCharacter | Signature: [const] bool supportsCharacter (unsigned int character) Description: Method bool QRawFont::supportsCharacter(QChar character) |
supportsCharacter_ucs4 | Signature: [const] bool supportsCharacter_ucs4 (unsigned int ucs4) Description: Method bool QRawFont::supportsCharacter(unsigned int ucs4) |
swap | Signature: void swap (QRawFont other) Description: Method void QRawFont::swap(QRawFont &other) |
underlinePosition | Signature: [const] double underlinePosition Description: Method double QRawFont::underlinePosition() |
unitsPerEm | Signature: [const] double unitsPerEm Description: Method double QRawFont::unitsPerEm() |
weight | Signature: [const] int weight Description: Method int QRawFont::weight() |
xHeight | Signature: [const] double xHeight Description: Method double QRawFont::xHeight() |