- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QFont>
Specifies a query for a font used for drawing text
Java wrapper for Qt's class QFont
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QFont::Capitalizationstatic enum
Java wrapper for Qt enum QFont::HintingPreferencestatic enum
Java wrapper for Qt enum QFont::ResolvePropertiesstatic enum
Java wrapper for Qt enum QFont::SpacingTypestatic enum
Java wrapper for Qt enum QFont::Stretchstatic enum
Java wrapper for Qt enum QFont::Stylestatic enum
Java wrapper for Qt enum QFont::StyleHintstatic enum
Java wrapper for Qt enum QFont::StyleStrategystatic enum
Java wrapper for Qt enum QFont::WeightNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
ModifierConstructorDescriptionQFont()
See QFont::QFont()QFont
(QFont font, QPaintDevice pd) Overloaded constructor forQFont(java.lang.String, int, int, boolean)
Overloaded constructor forQFont(java.lang.String, int, int, boolean)
Overloaded constructor forQFont(java.lang.String, int, int, boolean)
withitalic = false
.QFont
(Collection<String> families) Overloaded constructor forQFont(java.util.Collection, int, int, boolean)
QFont
(Collection<String> families, int pointSize) Overloaded constructor forQFont(java.util.Collection, int, int, boolean)
QFont
(Collection<String> families, int pointSize, int weight) Overloaded constructor forQFont(java.util.Collection, int, int, boolean)
withitalic = false
.QFont
(Collection<String> families, int pointSize, int weight, boolean italic) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final boolean
bold()
static void
final QFont.Capitalization
static void
cleanup()
clone()
int
final String
boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.final boolean
final QStringList
families()
final String
family()
final boolean
final boolean
fromString
(String arg__1) int
hashCode()
final QFont.HintingPreference
static void
static void
insertSubstitution
(String arg__1, String arg__2) static void
insertSubstitutions
(String arg__1, Collection<String> arg__2) final boolean
final boolean
italic()
final boolean
kerning()
final String
key()
final int
Deprecated.final double
final QFont.SpacingType
final boolean
overline()
final int
final int
final double
void
readFrom
(QDataStream arg__1) static void
removeSubstitutions
(String arg__1) final QFont
final int
final void
setBold
(boolean arg__1) final void
final void
setFamilies
(Collection<String> arg__1) final void
final void
setFixedPitch
(boolean arg__1) final void
setHintingPreference
(QFont.HintingPreference hintingPreference) final void
setItalic
(boolean b) final void
setKerning
(boolean arg__1) final void
setLegacyWeight
(int legacyWeight) Deprecated.UsesetWeight(io.qt.gui.QFont.Weight)
insteadfinal void
setLetterSpacing
(QFont.SpacingType type, double spacing) final void
setOverline
(boolean arg__1) final void
setPixelSize
(int arg__1) final void
setPointSize
(int arg__1) final void
setPointSizeF
(double arg__1) final void
setResolveMask
(int mask) final void
setStretch
(int arg__1) final void
setStrikeOut
(boolean arg__1) final void
setStyle
(QFont.Style style) final void
setStyleHint
(QFont.StyleHint arg__1) Overloaded function forsetStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)
witharg__2 = io.qt.gui.QFont.StyleStrategy.PreferDefault
.final void
setStyleHint
(QFont.StyleHint arg__1, QFont.StyleStrategy arg__2) final void
setStyleName
(String arg__1) final void
final void
setUnderline
(boolean arg__1) final void
setWeight
(QFont.Weight weight) final void
setWordSpacing
(double spacing) final int
stretch()
final boolean
final QFont.Style
style()
final QFont.StyleHint
final String
final QFont.StyleStrategy
static String
substitute
(String arg__1) static QStringList
substitutes
(String arg__1) static QStringList
final void
final String
toString()
final boolean
final QFont.Weight
weight()
final double
void
writeTo
(QDataStream arg__1) Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
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
Overloaded constructor for
QFont(java.util.Collection, int, int, boolean)
withitalic = false
. -
QFont
Overloaded constructor for
QFont(java.util.Collection, int, int, boolean)
with:
weight = -1
italic = false
-
QFont
Overloaded constructor for
QFont(java.util.Collection, 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
-
assign
-
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 the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QFont>
-
hashCode
-
clone
-
weight()
instead