java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QFont
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QFont>
public class QFont extends QtObject implements Comparable<QFont>, Cloneable
Specifies a query for a font used for drawing text
Java wrapper for Qt class QFont
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QFont.Capitalization
Java wrapper for Qt enum QFont::Capitalizationstatic class
QFont.HintingPreference
Java wrapper for Qt enum QFont::HintingPreferencestatic class
QFont.ResolveProperties
Java wrapper for Qt enum QFont::ResolvePropertiesstatic class
QFont.SpacingType
Java wrapper for Qt enum QFont::SpacingTypestatic class
QFont.Stretch
Java wrapper for Qt enum QFont::Stretchstatic class
QFont.Style
Java wrapper for Qt enum QFont::Stylestatic class
QFont.StyleHint
Java wrapper for Qt enum QFont::StyleHintstatic class
QFont.StyleStrategy
Java wrapper for Qt enum QFont::StyleStrategystatic class
QFont.Weight
Java wrapper for Qt enum QFont::Weight -
Field Summary
Fields Modifier and Type Field Description static QMetaObject
staticMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
Constructors Modifier Constructor Description QFont()
See QFont::QFont()QFont(QFont font)
QFont(QFont font, QPaintDevice pd)
protected
QFont(QtObject.QPrivateConstructor p)
Constructor for internal use only.QFont(String family)
Overloaded constructor forQFont(java.lang.String, int, int, boolean)
QFont(String family, int pointSize)
Overloaded constructor forQFont(java.lang.String, int, int, boolean)
QFont(String family, int pointSize, int weight)
Overloaded constructor forQFont(java.lang.String, int, int, boolean)
withitalic = false
.QFont(String family, int pointSize, int weight, boolean italic)
-
Method Summary
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QFont
public QFont()See QFont::QFont()
-
QFont
-
QFont
-
QFont
Overloaded constructor for
QFont(java.lang.String, int, int, boolean)
withitalic = false
. -
QFont
Overloaded constructor for
QFont(java.lang.String, int, int, boolean)
with:
weight = -1
italic = false
-
QFont
Overloaded constructor for
QFont(java.lang.String, int, int, boolean)
with:
pointSize = -1
weight = -1
italic = false
-
QFont
-
QFont
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
bold
-
capitalization
-
defaultFamily
-
exactMatch
-
families
-
family
-
fixedPitch
-
fromString
-
hintingPreference
-
isCopyOf
-
italic
-
kerning
-
key
-
legacyWeight
Deprecated.Useweight()
instead -
letterSpacing
-
letterSpacingType
-
writeTo
-
readFrom
-
overline
-
pixelSize
-
pointSize
-
pointSizeF
-
resolve
-
resolveMask
-
setBold
-
setCapitalization
-
setFamilies
-
setFamily
-
setFixedPitch
-
setHintingPreference
-
setItalic
-
setKerning
-
setLegacyWeight
Deprecated.UsesetWeight(io.qt.gui.QFont.Weight)
instead -
setLetterSpacing
-
setOverline
-
setPixelSize
-
setPointSize
-
setPointSizeF
-
setResolveMask
-
setStretch
-
setStrikeOut
-
setStyle
-
setStyleHint
Overloaded function for
setStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)
witharg__2 = io.qt.gui.QFont.StyleStrategy.PreferDefault
. -
setStyleHint
-
setStyleName
-
setStyleStrategy
-
setUnderline
-
setWeight
-
setWordSpacing
-
stretch
-
strikeOut
-
style
-
styleHint
-
styleName
-
styleStrategy
-
swap
-
toString
-
underline
-
weight
-
wordSpacing
-
cacheStatistics
public static void cacheStatistics() -
cleanup
public static void cleanup() -
initialize
public static void initialize() -
insertSubstitution
-
insertSubstitutions
-
removeSubstitutions
-
substitute
-
substitutes
-
substitutions
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QFont>
-
hashCode
-
clone
-