KLayout 0.29.8 (2024-11-26 926dac96c) [master]

API reference - Class QFont

Notation used in Ruby API documentation

Module: QtGui

Description: Binding of QFont

Sub-classes: Capitalization, QFlags_Capitalization, SpacingType, QFlags_SpacingType, Style, QFlags_Style, StyleHint, QFlags_StyleHint, StyleStrategy, QFlags_StyleStrategy

Public constructors

new QFontnewConstructor QFont::QFont()
new QFontnew(string family,
int pointSize = -1,
int weight = -1,
bool italic = false)
Constructor QFont::QFont(const QString &family, int pointSize, int weight, bool italic)
new QFontnew(const QFont arg1,
QPaintDevice ptr pd)
Constructor QFont::QFont(const QFont &, QPaintDevice *pd)
new QFontnew(const QFont arg1)Constructor QFont::QFont(const QFont &)

Public methods

[const]bool!=(const QFont arg1)Method bool QFont::operator!=(const QFont &)
[const]bool<(const QFont arg1)Method bool QFont::operator<(const QFont &)
[const]bool==(const QFont arg1)Method bool QFont::operator==(const QFont &)
void_assign(const QFont other)Assigns another object to self
[const]QFont ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly 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_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
QFontassign(const QFont arg1)Method QFont &QFont::operator=(const QFont &)
[const]boolboldMethod bool QFont::bold()
voidbold=(bool arg1)Method void QFont::setBold(bool)
[const]QFont_CapitalizationcapitalizationMethod QFont::Capitalization QFont::capitalization()
voidcapitalization=(const QFont_Capitalization arg1)Method void QFont::setCapitalization(QFont::Capitalization)
[const]stringdefaultFamilyMethod QString QFont::defaultFamily()
[const]new QFont ptrdupCreates a copy of self
[const]boolexactMatchMethod bool QFont::exactMatch()
[const]stringfamilyMethod QString QFont::family()
voidfamily=(string arg1)Method void QFont::setFamily(const QString &)
[const]boolfixedPitchMethod bool QFont::fixedPitch()
voidfixedPitch=(bool arg1)Method void QFont::setFixedPitch(bool)
boolfromString(string arg1)Method bool QFont::fromString(const QString &)
[const]unsigned longhandleMethod Qt::HANDLE QFont::handle()
[const]boolisCopyOf?(const QFont arg1)Method bool QFont::isCopyOf(const QFont &)
[const]boolitalicMethod bool QFont::italic()
voiditalic=(bool b)Method void QFont::setItalic(bool b)
[const]boolkerningMethod bool QFont::kerning()
voidkerning=(bool arg1)Method void QFont::setKerning(bool)
[const]stringkeyMethod QString QFont::key()
[const]stringlastResortFamilyMethod QString QFont::lastResortFamily()
[const]stringlastResortFontMethod QString QFont::lastResortFont()
[const]doubleletterSpacingMethod double QFont::letterSpacing()
[const]QFont_SpacingTypeletterSpacingTypeMethod QFont::SpacingType QFont::letterSpacingType()
[const]booloverlineMethod bool QFont::overline()
voidoverline=(bool arg1)Method void QFont::setOverline(bool)
[const]intpixelSizeMethod int QFont::pixelSize()
voidpixelSize=(int arg1)Method void QFont::setPixelSize(int)
[const]intpointSizeMethod int QFont::pointSize()
voidpointSize=(int arg1)Method void QFont::setPointSize(int)
[const]doublepointSizeFMethod double QFont::pointSizeF()
voidpointSizeF=(double arg1)Method void QFont::setPointSizeF(double)
[const]boolrawModeMethod bool QFont::rawMode()
voidrawMode=(bool arg1)Method void QFont::setRawMode(bool)
[const]stringrawNameMethod QString QFont::rawName()
voidrawName=(string arg1)Method void QFont::setRawName(const QString &)
[const]QFontresolve(const QFont arg1)Method QFont QFont::resolve(const QFont &)
voidsetBold(bool arg1)Method void QFont::setBold(bool)
voidsetCapitalization(const QFont_Capitalization arg1)Method void QFont::setCapitalization(QFont::Capitalization)
voidsetFamily(string arg1)Method void QFont::setFamily(const QString &)
voidsetFixedPitch(bool arg1)Method void QFont::setFixedPitch(bool)
voidsetItalic(bool b)Method void QFont::setItalic(bool b)
voidsetKerning(bool arg1)Method void QFont::setKerning(bool)
voidsetLetterSpacing(const QFont_SpacingType type,
double spacing)
Method void QFont::setLetterSpacing(QFont::SpacingType type, double spacing)
voidsetOverline(bool arg1)Method void QFont::setOverline(bool)
voidsetPixelSize(int arg1)Method void QFont::setPixelSize(int)
voidsetPointSize(int arg1)Method void QFont::setPointSize(int)
voidsetPointSizeF(double arg1)Method void QFont::setPointSizeF(double)
voidsetRawMode(bool arg1)Method void QFont::setRawMode(bool)
voidsetRawName(string arg1)Method void QFont::setRawName(const QString &)
voidsetStretch(int arg1)Method void QFont::setStretch(int)
voidsetStrikeOut(bool arg1)Method void QFont::setStrikeOut(bool)
voidsetStyle(const QFont_Style style)Method void QFont::setStyle(QFont::Style style)
voidsetStyleHint(const QFont_StyleHint arg1,
const QFont_StyleStrategy arg2 = QFont::PreferDefault)
Method void QFont::setStyleHint(QFont::StyleHint, QFont::StyleStrategy)
voidsetStyleStrategy(const QFont_StyleStrategy s)Method void QFont::setStyleStrategy(QFont::StyleStrategy s)
voidsetUnderline(bool arg1)Method void QFont::setUnderline(bool)
voidsetWeight(int arg1)Method void QFont::setWeight(int)
voidsetWordSpacing(double spacing)Method void QFont::setWordSpacing(double spacing)
[const]intstretchMethod int QFont::stretch()
voidstretch=(int arg1)Method void QFont::setStretch(int)
[const]boolstrikeOutMethod bool QFont::strikeOut()
voidstrikeOut=(bool arg1)Method void QFont::setStrikeOut(bool)
[const]QFont_StylestyleMethod QFont::Style QFont::style()
voidstyle=(const QFont_Style style)Method void QFont::setStyle(QFont::Style style)
[const]QFont_StyleHintstyleHintMethod QFont::StyleHint QFont::styleHint()
[const]QFont_StyleStrategystyleStrategyMethod QFont::StyleStrategy QFont::styleStrategy()
voidstyleStrategy=(const QFont_StyleStrategy s)Method void QFont::setStyleStrategy(QFont::StyleStrategy s)
[const]stringtoStringMethod QString QFont::toString()
[const]stringto_sMethod QString QFont::toString()
[const]boolunderlineMethod bool QFont::underline()
voidunderline=(bool arg1)Method void QFont::setUnderline(bool)
[const]intweightMethod int QFont::weight()
voidweight=(int arg1)Method void QFont::setWeight(int)
[const]doublewordSpacingMethod double QFont::wordSpacing()
voidwordSpacing=(double spacing)Method void QFont::setWordSpacing(double spacing)

Public static methods and constants

[static,const]QFont_SpacingTypeAbsoluteSpacingEnum constant QFont::AbsoluteSpacing
[static,const]QFont_CapitalizationAllLowercaseEnum constant QFont::AllLowercase
[static,const]QFont_CapitalizationAllUppercaseEnum constant QFont::AllUppercase
[static,const]QFont_StyleHintAnyStyleEnum constant QFont::AnyStyle
unsigned intBlackFont weight constant 'QFont::Black'.
unsigned intBoldFont weight constant 'QFont::Bold'.
[static,const]QFont_CapitalizationCapitalizeEnum constant QFont::Capitalize
[static,const]QFont_StyleHintCourierEnum constant QFont::Courier
[static,const]QFont_StyleHintDecorativeEnum constant QFont::Decorative
unsigned intDemiBoldFont weight constant 'QFont::DemiBold'.
[static,const]QFont_StyleStrategyForceOutlineEnum constant QFont::ForceOutline
[static,const]QFont_StyleHintHelveticaEnum constant QFont::Helvetica
unsigned intLightFont weight constant 'QFont::Light'.
[static,const]QFont_CapitalizationMixedCaseEnum constant QFont::MixedCase
[static,const]QFont_StyleStrategyNoAntialiasEnum constant QFont::NoAntialias
[static,const]QFont_StyleStrategyNoFontMergingEnum constant QFont::NoFontMerging
unsigned intNormalFont weight constant 'QFont::Normal'.
[static,const]QFont_StyleHintOldEnglishEnum constant QFont::OldEnglish
[static,const]QFont_StyleStrategyOpenGLCompatibleEnum constant QFont::OpenGLCompatible
[static,const]QFont_SpacingTypePercentageSpacingEnum constant QFont::PercentageSpacing
[static,const]QFont_StyleStrategyPreferAntialiasEnum constant QFont::PreferAntialias
[static,const]QFont_StyleStrategyPreferBitmapEnum constant QFont::PreferBitmap
[static,const]QFont_StyleStrategyPreferDefaultEnum constant QFont::PreferDefault
[static,const]QFont_StyleStrategyPreferDeviceEnum constant QFont::PreferDevice
[static,const]QFont_StyleStrategyPreferMatchEnum constant QFont::PreferMatch
[static,const]QFont_StyleStrategyPreferOutlineEnum constant QFont::PreferOutline
[static,const]QFont_StyleStrategyPreferQualityEnum constant QFont::PreferQuality
[static,const]QFont_StyleHintSansSerifEnum constant QFont::SansSerif
[static,const]QFont_StyleHintSerifEnum constant QFont::Serif
[static,const]QFont_CapitalizationSmallCapsEnum constant QFont::SmallCaps
[static,const]QFont_StyleStyleItalicEnum constant QFont::StyleItalic
[static,const]QFont_StyleStyleNormalEnum constant QFont::StyleNormal
[static,const]QFont_StyleStyleObliqueEnum constant QFont::StyleOblique
[static,const]QFont_StyleHintSystemEnum constant QFont::System
[static,const]QFont_StyleHintTimesEnum constant QFont::Times
[static,const]QFont_StyleHintTypeWriterEnum constant QFont::TypeWriter
voidcacheStatisticsStatic method void QFont::cacheStatistics()
voidcleanupStatic method void QFont::cleanup()
voidinsertSubstitution(string arg1,
string arg2)
Static method void QFont::insertSubstitution(const QString &, const QString &)
voidinsertSubstitutions(string arg1,
string[] arg2)
Static method void QFont::insertSubstitutions(const QString &, const QStringList &)
voidremoveSubstitution(string arg1)Static method void QFont::removeSubstitution(const QString &)
stringsubstitute(string arg1)Static method QString QFont::substitute(const QString &)
string[]substitutes(string arg1)Static method QStringList QFont::substitutes(const QString &)
string[]substitutionsStatic method QStringList QFont::substitutions()

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

!=

Signature: [const] bool != (const QFont arg1)

Description: Method bool QFont::operator!=(const QFont &)

<

Signature: [const] bool < (const QFont arg1)

Description: Method bool QFont::operator<(const QFont &)

==

Signature: [const] bool == (const QFont arg1)

Description: Method bool QFont::operator==(const QFont &)

AbsoluteSpacing

Signature: [static,const] QFont_SpacingType AbsoluteSpacing

Description: Enum constant QFont::AbsoluteSpacing

Python specific notes:
The object exposes a readable attribute 'AbsoluteSpacing'. This is the getter.

AllLowercase

Signature: [static,const] QFont_Capitalization AllLowercase

Description: Enum constant QFont::AllLowercase

Python specific notes:
The object exposes a readable attribute 'AllLowercase'. This is the getter.

AllUppercase

Signature: [static,const] QFont_Capitalization AllUppercase

Description: Enum constant QFont::AllUppercase

Python specific notes:
The object exposes a readable attribute 'AllUppercase'. This is the getter.

AnyStyle

Signature: [static,const] QFont_StyleHint AnyStyle

Description: Enum constant QFont::AnyStyle

Python specific notes:
The object exposes a readable attribute 'AnyStyle'. This is the getter.

Black

Signature: [static] unsigned int Black

Description: Font weight constant 'QFont::Black'.

Python specific notes:
The object exposes a readable attribute 'Black'. This is the getter.

Bold

Signature: [static] unsigned int Bold

Description: Font weight constant 'QFont::Bold'.

Python specific notes:
The object exposes a readable attribute 'Bold'. This is the getter.

Capitalize

Signature: [static,const] QFont_Capitalization Capitalize

Description: Enum constant QFont::Capitalize

Python specific notes:
The object exposes a readable attribute 'Capitalize'. This is the getter.

Courier

Signature: [static,const] QFont_StyleHint Courier

Description: Enum constant QFont::Courier

Python specific notes:
The object exposes a readable attribute 'Courier'. This is the getter.

Decorative

Signature: [static,const] QFont_StyleHint Decorative

Description: Enum constant QFont::Decorative

Python specific notes:
The object exposes a readable attribute 'Decorative'. This is the getter.

DemiBold

Signature: [static] unsigned int DemiBold

Description: Font weight constant 'QFont::DemiBold'.

Python specific notes:
The object exposes a readable attribute 'DemiBold'. This is the getter.

ForceOutline

Signature: [static,const] QFont_StyleStrategy ForceOutline

Description: Enum constant QFont::ForceOutline

Python specific notes:
The object exposes a readable attribute 'ForceOutline'. This is the getter.

Helvetica

Signature: [static,const] QFont_StyleHint Helvetica

Description: Enum constant QFont::Helvetica

Python specific notes:
The object exposes a readable attribute 'Helvetica'. This is the getter.

Light

Signature: [static] unsigned int Light

Description: Font weight constant 'QFont::Light'.

Python specific notes:
The object exposes a readable attribute 'Light'. This is the getter.

MixedCase

Signature: [static,const] QFont_Capitalization MixedCase

Description: Enum constant QFont::MixedCase

Python specific notes:
The object exposes a readable attribute 'MixedCase'. This is the getter.

NoAntialias

Signature: [static,const] QFont_StyleStrategy NoAntialias

Description: Enum constant QFont::NoAntialias

Python specific notes:
The object exposes a readable attribute 'NoAntialias'. This is the getter.

NoFontMerging

Signature: [static,const] QFont_StyleStrategy NoFontMerging

Description: Enum constant QFont::NoFontMerging

Python specific notes:
The object exposes a readable attribute 'NoFontMerging'. This is the getter.

Normal

Signature: [static] unsigned int Normal

Description: Font weight constant 'QFont::Normal'.

Python specific notes:
The object exposes a readable attribute 'Normal'. This is the getter.

OldEnglish

Signature: [static,const] QFont_StyleHint OldEnglish

Description: Enum constant QFont::OldEnglish

Python specific notes:
The object exposes a readable attribute 'OldEnglish'. This is the getter.

OpenGLCompatible

Signature: [static,const] QFont_StyleStrategy OpenGLCompatible

Description: Enum constant QFont::OpenGLCompatible

Python specific notes:
The object exposes a readable attribute 'OpenGLCompatible'. This is the getter.

PercentageSpacing

Signature: [static,const] QFont_SpacingType PercentageSpacing

Description: Enum constant QFont::PercentageSpacing

Python specific notes:
The object exposes a readable attribute 'PercentageSpacing'. This is the getter.

PreferAntialias

Signature: [static,const] QFont_StyleStrategy PreferAntialias

Description: Enum constant QFont::PreferAntialias

Python specific notes:
The object exposes a readable attribute 'PreferAntialias'. This is the getter.

PreferBitmap

Signature: [static,const] QFont_StyleStrategy PreferBitmap

Description: Enum constant QFont::PreferBitmap

Python specific notes:
The object exposes a readable attribute 'PreferBitmap'. This is the getter.

PreferDefault

Signature: [static,const] QFont_StyleStrategy PreferDefault

Description: Enum constant QFont::PreferDefault

Python specific notes:
The object exposes a readable attribute 'PreferDefault'. This is the getter.

PreferDevice

Signature: [static,const] QFont_StyleStrategy PreferDevice

Description: Enum constant QFont::PreferDevice

Python specific notes:
The object exposes a readable attribute 'PreferDevice'. This is the getter.

PreferMatch

Signature: [static,const] QFont_StyleStrategy PreferMatch

Description: Enum constant QFont::PreferMatch

Python specific notes:
The object exposes a readable attribute 'PreferMatch'. This is the getter.

PreferOutline

Signature: [static,const] QFont_StyleStrategy PreferOutline

Description: Enum constant QFont::PreferOutline

Python specific notes:
The object exposes a readable attribute 'PreferOutline'. This is the getter.

PreferQuality

Signature: [static,const] QFont_StyleStrategy PreferQuality

Description: Enum constant QFont::PreferQuality

Python specific notes:
The object exposes a readable attribute 'PreferQuality'. This is the getter.

SansSerif

Signature: [static,const] QFont_StyleHint SansSerif

Description: Enum constant QFont::SansSerif

Python specific notes:
The object exposes a readable attribute 'SansSerif'. This is the getter.

Serif

Signature: [static,const] QFont_StyleHint Serif

Description: Enum constant QFont::Serif

Python specific notes:
The object exposes a readable attribute 'Serif'. This is the getter.

SmallCaps

Signature: [static,const] QFont_Capitalization SmallCaps

Description: Enum constant QFont::SmallCaps

Python specific notes:
The object exposes a readable attribute 'SmallCaps'. This is the getter.

StyleItalic

Signature: [static,const] QFont_Style StyleItalic

Description: Enum constant QFont::StyleItalic

Python specific notes:
The object exposes a readable attribute 'StyleItalic'. This is the getter.

StyleNormal

Signature: [static,const] QFont_Style StyleNormal

Description: Enum constant QFont::StyleNormal

Python specific notes:
The object exposes a readable attribute 'StyleNormal'. This is the getter.

StyleOblique

Signature: [static,const] QFont_Style StyleOblique

Description: Enum constant QFont::StyleOblique

Python specific notes:
The object exposes a readable attribute 'StyleOblique'. This is the getter.

System

Signature: [static,const] QFont_StyleHint System

Description: Enum constant QFont::System

Python specific notes:
The object exposes a readable attribute 'System'. This is the getter.

Times

Signature: [static,const] QFont_StyleHint Times

Description: Enum constant QFont::Times

Python specific notes:
The object exposes a readable attribute 'Times'. This is the getter.

TypeWriter

Signature: [static,const] QFont_StyleHint TypeWriter

Description: Enum constant QFont::TypeWriter

Python specific notes:
The object exposes a readable attribute 'TypeWriter'. This is the getter.

_assign

Signature: void _assign (const QFont other)

Description: Assigns another object to self

_const_cast

Signature: [const] QFont 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.

assign

Signature: QFont assign (const QFont arg1)

Description: Method QFont &QFont::operator=(const QFont &)

bold

Signature: [const] bool bold

Description: Method bool QFont::bold()

Python specific notes:
The object exposes a readable attribute 'bold'. This is the getter.

bold=

Signature: void bold= (bool arg1)

Description: Method void QFont::setBold(bool)

Python specific notes:
The object exposes a writable attribute 'bold'. This is the setter.

cacheStatistics

Signature: [static] void cacheStatistics

Description: Static method void QFont::cacheStatistics()

This method is static and can be called without an instance.

capitalization

Signature: [const] QFont_Capitalization capitalization

Description: Method QFont::Capitalization QFont::capitalization()

Python specific notes:
The object exposes a readable attribute 'capitalization'. This is the getter.

capitalization=

Signature: void capitalization= (const QFont_Capitalization arg1)

Description: Method void QFont::setCapitalization(QFont::Capitalization)

Python specific notes:
The object exposes a writable attribute 'capitalization'. This is the setter.

cleanup

Signature: [static] void cleanup

Description: Static method void QFont::cleanup()

This method is static and can be called without an instance.

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.

defaultFamily

Signature: [const] string defaultFamily

Description: Method QString QFont::defaultFamily()

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 QFont ptr dup

Description: Creates a copy of self

Python specific notes:
This method also implements '__copy__' and '__deepcopy__'.

exactMatch

Signature: [const] bool exactMatch

Description: Method bool QFont::exactMatch()

family

Signature: [const] string family

Description: Method QString QFont::family()

Python specific notes:
The object exposes a readable attribute 'family'. This is the getter.

family=

Signature: void family= (string arg1)

Description: Method void QFont::setFamily(const QString &)

Python specific notes:
The object exposes a writable attribute 'family'. This is the setter.

fixedPitch

Signature: [const] bool fixedPitch

Description: Method bool QFont::fixedPitch()

Python specific notes:
The object exposes a readable attribute 'fixedPitch'. This is the getter.

fixedPitch=

Signature: void fixedPitch= (bool arg1)

Description: Method void QFont::setFixedPitch(bool)

Python specific notes:
The object exposes a writable attribute 'fixedPitch'. This is the setter.

fromString

Signature: bool fromString (string arg1)

Description: Method bool QFont::fromString(const QString &)

handle

Signature: [const] unsigned long handle

Description: Method Qt::HANDLE QFont::handle()

insertSubstitution

Signature: [static] void insertSubstitution (string arg1, string arg2)

Description: Static method void QFont::insertSubstitution(const QString &, const QString &)

This method is static and can be called without an instance.

insertSubstitutions

Signature: [static] void insertSubstitutions (string arg1, string[] arg2)

Description: Static method void QFont::insertSubstitutions(const QString &, const QStringList &)

This method is static and can be called without an instance.

isCopyOf?

Signature: [const] bool isCopyOf? (const QFont arg1)

Description: Method bool QFont::isCopyOf(const QFont &)

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.

italic

Signature: [const] bool italic

Description: Method bool QFont::italic()

Python specific notes:
The object exposes a readable attribute 'italic'. This is the getter.

italic=

Signature: void italic= (bool b)

Description: Method void QFont::setItalic(bool b)

Python specific notes:
The object exposes a writable attribute 'italic'. This is the setter.

kerning

Signature: [const] bool kerning

Description: Method bool QFont::kerning()

Python specific notes:
The object exposes a readable attribute 'kerning'. This is the getter.

kerning=

Signature: void kerning= (bool arg1)

Description: Method void QFont::setKerning(bool)

Python specific notes:
The object exposes a writable attribute 'kerning'. This is the setter.

key

Signature: [const] string key

Description: Method QString QFont::key()

lastResortFamily

Signature: [const] string lastResortFamily

Description: Method QString QFont::lastResortFamily()

lastResortFont

Signature: [const] string lastResortFont

Description: Method QString QFont::lastResortFont()

letterSpacing

Signature: [const] double letterSpacing

Description: Method double QFont::letterSpacing()

letterSpacingType

Signature: [const] QFont_SpacingType letterSpacingType

Description: Method QFont::SpacingType QFont::letterSpacingType()

new

(1) Signature: [static] new QFont new

Description: Constructor QFont::QFont()

This method creates an object of class QFont.

Python specific notes:
This method is the default initializer of the object.

(2) Signature: [static] new QFont new (string family, int pointSize = -1, int weight = -1, bool italic = false)

Description: Constructor QFont::QFont(const QString &family, int pointSize, int weight, bool italic)

This method creates an object of class QFont.

Python specific notes:
This method is the default initializer of the object.

(3) Signature: [static] new QFont new (const QFont arg1, QPaintDevice ptr pd)

Description: Constructor QFont::QFont(const QFont &, QPaintDevice *pd)

This method creates an object of class QFont.

Python specific notes:
This method is the default initializer of the object.

(4) Signature: [static] new QFont new (const QFont arg1)

Description: Constructor QFont::QFont(const QFont &)

This method creates an object of class QFont.

Python specific notes:
This method is the default initializer of the object.

overline

Signature: [const] bool overline

Description: Method bool QFont::overline()

Python specific notes:
The object exposes a readable attribute 'overline'. This is the getter.

overline=

Signature: void overline= (bool arg1)

Description: Method void QFont::setOverline(bool)

Python specific notes:
The object exposes a writable attribute 'overline'. This is the setter.

pixelSize

Signature: [const] int pixelSize

Description: Method int QFont::pixelSize()

Python specific notes:
The object exposes a readable attribute 'pixelSize'. This is the getter.

pixelSize=

Signature: void pixelSize= (int arg1)

Description: Method void QFont::setPixelSize(int)

Python specific notes:
The object exposes a writable attribute 'pixelSize'. This is the setter.

pointSize

Signature: [const] int pointSize

Description: Method int QFont::pointSize()

Python specific notes:
The object exposes a readable attribute 'pointSize'. This is the getter.

pointSize=

Signature: void pointSize= (int arg1)

Description: Method void QFont::setPointSize(int)

Python specific notes:
The object exposes a writable attribute 'pointSize'. This is the setter.

pointSizeF

Signature: [const] double pointSizeF

Description: Method double QFont::pointSizeF()

Python specific notes:
The object exposes a readable attribute 'pointSizeF'. This is the getter.

pointSizeF=

Signature: void pointSizeF= (double arg1)

Description: Method void QFont::setPointSizeF(double)

Python specific notes:
The object exposes a writable attribute 'pointSizeF'. This is the setter.

rawMode

Signature: [const] bool rawMode

Description: Method bool QFont::rawMode()

Python specific notes:
The object exposes a readable attribute 'rawMode'. This is the getter.

rawMode=

Signature: void rawMode= (bool arg1)

Description: Method void QFont::setRawMode(bool)

Python specific notes:
The object exposes a writable attribute 'rawMode'. This is the setter.

rawName

Signature: [const] string rawName

Description: Method QString QFont::rawName()

Python specific notes:
The object exposes a readable attribute 'rawName'. This is the getter.

rawName=

Signature: void rawName= (string arg1)

Description: Method void QFont::setRawName(const QString &)

Python specific notes:
The object exposes a writable attribute 'rawName'. This is the setter.

removeSubstitution

Signature: [static] void removeSubstitution (string arg1)

Description: Static method void QFont::removeSubstitution(const QString &)

This method is static and can be called without an instance.

resolve

Signature: [const] QFont resolve (const QFont arg1)

Description: Method QFont QFont::resolve(const QFont &)

setBold

Signature: void setBold (bool arg1)

Description: Method void QFont::setBold(bool)

Python specific notes:
The object exposes a writable attribute 'bold'. This is the setter.

setCapitalization

Signature: void setCapitalization (const QFont_Capitalization arg1)

Description: Method void QFont::setCapitalization(QFont::Capitalization)

Python specific notes:
The object exposes a writable attribute 'capitalization'. This is the setter.

setFamily

Signature: void setFamily (string arg1)

Description: Method void QFont::setFamily(const QString &)

Python specific notes:
The object exposes a writable attribute 'family'. This is the setter.

setFixedPitch

Signature: void setFixedPitch (bool arg1)

Description: Method void QFont::setFixedPitch(bool)

Python specific notes:
The object exposes a writable attribute 'fixedPitch'. This is the setter.

setItalic

Signature: void setItalic (bool b)

Description: Method void QFont::setItalic(bool b)

Python specific notes:
The object exposes a writable attribute 'italic'. This is the setter.

setKerning

Signature: void setKerning (bool arg1)

Description: Method void QFont::setKerning(bool)

Python specific notes:
The object exposes a writable attribute 'kerning'. This is the setter.

setLetterSpacing

Signature: void setLetterSpacing (const QFont_SpacingType type, double spacing)

Description: Method void QFont::setLetterSpacing(QFont::SpacingType type, double spacing)

setOverline

Signature: void setOverline (bool arg1)

Description: Method void QFont::setOverline(bool)

Python specific notes:
The object exposes a writable attribute 'overline'. This is the setter.

setPixelSize

Signature: void setPixelSize (int arg1)

Description: Method void QFont::setPixelSize(int)

Python specific notes:
The object exposes a writable attribute 'pixelSize'. This is the setter.

setPointSize

Signature: void setPointSize (int arg1)

Description: Method void QFont::setPointSize(int)

Python specific notes:
The object exposes a writable attribute 'pointSize'. This is the setter.

setPointSizeF

Signature: void setPointSizeF (double arg1)

Description: Method void QFont::setPointSizeF(double)

Python specific notes:
The object exposes a writable attribute 'pointSizeF'. This is the setter.

setRawMode

Signature: void setRawMode (bool arg1)

Description: Method void QFont::setRawMode(bool)

Python specific notes:
The object exposes a writable attribute 'rawMode'. This is the setter.

setRawName

Signature: void setRawName (string arg1)

Description: Method void QFont::setRawName(const QString &)

Python specific notes:
The object exposes a writable attribute 'rawName'. This is the setter.

setStretch

Signature: void setStretch (int arg1)

Description: Method void QFont::setStretch(int)

Python specific notes:
The object exposes a writable attribute 'stretch'. This is the setter.

setStrikeOut

Signature: void setStrikeOut (bool arg1)

Description: Method void QFont::setStrikeOut(bool)

Python specific notes:
The object exposes a writable attribute 'strikeOut'. This is the setter.

setStyle

Signature: void setStyle (const QFont_Style style)

Description: Method void QFont::setStyle(QFont::Style style)

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

setStyleHint

Signature: void setStyleHint (const QFont_StyleHint arg1, const QFont_StyleStrategy arg2 = QFont::PreferDefault)

Description: Method void QFont::setStyleHint(QFont::StyleHint, QFont::StyleStrategy)

setStyleStrategy

Signature: void setStyleStrategy (const QFont_StyleStrategy s)

Description: Method void QFont::setStyleStrategy(QFont::StyleStrategy s)

Python specific notes:
The object exposes a writable attribute 'styleStrategy'. This is the setter.

setUnderline

Signature: void setUnderline (bool arg1)

Description: Method void QFont::setUnderline(bool)

Python specific notes:
The object exposes a writable attribute 'underline'. This is the setter.

setWeight

Signature: void setWeight (int arg1)

Description: Method void QFont::setWeight(int)

Python specific notes:
The object exposes a writable attribute 'weight'. This is the setter.

setWordSpacing

Signature: void setWordSpacing (double spacing)

Description: Method void QFont::setWordSpacing(double spacing)

Python specific notes:
The object exposes a writable attribute 'wordSpacing'. This is the setter.

stretch

Signature: [const] int stretch

Description: Method int QFont::stretch()

Python specific notes:
The object exposes a readable attribute 'stretch'. This is the getter.

stretch=

Signature: void stretch= (int arg1)

Description: Method void QFont::setStretch(int)

Python specific notes:
The object exposes a writable attribute 'stretch'. This is the setter.

strikeOut

Signature: [const] bool strikeOut

Description: Method bool QFont::strikeOut()

Python specific notes:
The object exposes a readable attribute 'strikeOut'. This is the getter.

strikeOut=

Signature: void strikeOut= (bool arg1)

Description: Method void QFont::setStrikeOut(bool)

Python specific notes:
The object exposes a writable attribute 'strikeOut'. This is the setter.

style

Signature: [const] QFont_Style style

Description: Method QFont::Style QFont::style()

Python specific notes:
The object exposes a readable attribute 'style'. This is the getter.

style=

Signature: void style= (const QFont_Style style)

Description: Method void QFont::setStyle(QFont::Style style)

Python specific notes:
The object exposes a writable attribute 'style'. This is the setter.

styleHint

Signature: [const] QFont_StyleHint styleHint

Description: Method QFont::StyleHint QFont::styleHint()

Python specific notes:
The object exposes a readable attribute 'styleHint'. This is the getter.

styleStrategy

Signature: [const] QFont_StyleStrategy styleStrategy

Description: Method QFont::StyleStrategy QFont::styleStrategy()

Python specific notes:
The object exposes a readable attribute 'styleStrategy'. This is the getter.

styleStrategy=

Signature: void styleStrategy= (const QFont_StyleStrategy s)

Description: Method void QFont::setStyleStrategy(QFont::StyleStrategy s)

Python specific notes:
The object exposes a writable attribute 'styleStrategy'. This is the setter.

substitute

Signature: [static] string substitute (string arg1)

Description: Static method QString QFont::substitute(const QString &)

This method is static and can be called without an instance.

substitutes

Signature: [static] string[] substitutes (string arg1)

Description: Static method QStringList QFont::substitutes(const QString &)

This method is static and can be called without an instance.

substitutions

Signature: [static] string[] substitutions

Description: Static method QStringList QFont::substitutions()

This method is static and can be called without an instance.

toString

Signature: [const] string toString

Description: Method QString QFont::toString()

Python specific notes:
This method is also available as 'str(object)'.

to_s

Signature: [const] string to_s

Description: Method QString QFont::toString()

Python specific notes:
This method is also available as 'str(object)'.

underline

Signature: [const] bool underline

Description: Method bool QFont::underline()

Python specific notes:
The object exposes a readable attribute 'underline'. This is the getter.

underline=

Signature: void underline= (bool arg1)

Description: Method void QFont::setUnderline(bool)

Python specific notes:
The object exposes a writable attribute 'underline'. This is the setter.

weight

Signature: [const] int weight

Description: Method int QFont::weight()

Python specific notes:
The object exposes a readable attribute 'weight'. This is the getter.

weight=

Signature: void weight= (int arg1)

Description: Method void QFont::setWeight(int)

Python specific notes:
The object exposes a writable attribute 'weight'. This is the setter.

wordSpacing

Signature: [const] double wordSpacing

Description: Method double QFont::wordSpacing()

Python specific notes:
The object exposes a readable attribute 'wordSpacing'. This is the getter.

wordSpacing=

Signature: void wordSpacing= (double spacing)

Description: Method void QFont::setWordSpacing(double spacing)

Python specific notes:
The object exposes a writable attribute 'wordSpacing'. This is the setter.