- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QFont>
Specifies a query for a font used for drawing text
Java wrapper for Qt class QFont
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQFont::Capitalization
static enum
Java wrapper for Qt enumQFont::HintingPreference
static enum
Java wrapper for Qt enumQFont::ResolveProperties
static enum
Java wrapper for Qt enumQFont::SpacingType
static enum
Java wrapper for Qt enumQFont::Stretch
static enum
Java wrapper for Qt enumQFont::Style
static enum
Java wrapper for Qt enumQFont::StyleHint
static enum
Java wrapper for Qt enumQFont::StyleStrategy
static enum
Java wrapper for Qt enumQFont::Weight
Nested 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
ConstructorDescriptionQFont()
SeeQFont::
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) -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final boolean
bold()
static void
SeeQFont::
cacheStatistics() final QFont.Capitalization
static void
cleanup()
SeeQFont::
cleanup() final void
SeeQFont::
clearFeatures() clone()
Creates and returns a copy of this object.int
final String
boolean
final boolean
final QStringList
families()
final String
family()
final QList<@QtPrimitiveType Integer>
SeeQFont::
featureTags()const final int
featureValue
(int tag) SeeQFont::
featureValue(quint32)const final boolean
final boolean
fromString
(String arg__1) int
hashCode()
Returns the objects's hash code computed byqHash(QFont)
.final QFont.HintingPreference
static void
SeeQFont::
initialize() static void
insertSubstitution
(String arg__1, String arg__2) static void
insertSubstitutions
(String arg__1, Collection<String> arg__2) final boolean
final boolean
isFeatureSet
(int tag) SeeQFont::
isFeatureSet(quint32)const final boolean
italic()
final boolean
kerning()
final String
key()
final int
SeeQFont::
legacyWeight()const 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
SeeQFont::
resolveMask()const final void
setBold
(boolean arg__1) final void
final void
setFamilies
(Collection<String> arg__1) final void
final void
setFeature
(int tag, int value) SeeQFont::
setFeature(quint32, quint32) final void
setFeature
(String feature, int value) SeeQFont::
setFeature(const char*, quint32) 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) SeeQFont::
setLegacyWeight(int) final 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) SeeQFont::
setResolveMask(uint) 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
static int
stringToTag
(String tagString) SeeQFont::
stringToTag(const char*) 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
static QByteArray
tagToString
(int tag) SeeQFont::
tagToString(quint32) final String
toString()
final boolean
final void
unsetFeature
(int tag) SeeQFont::
unsetFeature(quint32) final void
unsetFeature
(String feature) SeeQFont::
unsetFeature(const char*) 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
-
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
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
-
-
Method Details
-
bold
-
capitalization
-
clearFeatures
See
QFont::
clearFeatures() -
defaultFamily
-
exactMatch
-
families
-
family
-
featureTags
See
QFont::
featureTags()const -
featureValue
See
QFont::
featureValue(quint32)const -
fixedPitch
-
fromString
-
hintingPreference
-
isCopyOf
-
isFeatureSet
See
QFont::
isFeatureSet(quint32)const -
italic
-
kerning
-
key
-
legacyWeight
See
QFont::
legacyWeight()const -
letterSpacing
-
letterSpacingType
-
writeTo
-
assign
-
readFrom
-
overline
-
pixelSize
-
pointSize
-
pointSizeF
-
resolve
-
resolveMask
See
QFont::
resolveMask()const -
setBold
-
setCapitalization
-
setFamilies
-
setFamily
-
setFeature
See
QFont::
setFeature(const char*, quint32) -
setFeature
See
QFont::
setFeature(quint32, quint32) -
setFixedPitch
-
setHintingPreference
-
setItalic
-
setKerning
-
setLegacyWeight
See
QFont::
setLegacyWeight(int) -
setLetterSpacing
-
setOverline
-
setPixelSize
-
setPointSize
-
setPointSizeF
-
setResolveMask
See
QFont::
setResolveMask(uint) -
setStretch
-
setStrikeOut
-
setStyle
-
setStyleHint
-
setStyleName
-
setStyleStrategy
-
setUnderline
-
setWeight
-
setWordSpacing
-
stretch
-
strikeOut
-
style
-
styleHint
-
styleName
-
styleStrategy
-
swap
-
toString
-
underline
-
unsetFeature
See
QFont::
unsetFeature(const char*) -
unsetFeature
See
QFont::
unsetFeature(quint32) -
weight
-
wordSpacing
-
cacheStatistics
public static void cacheStatistics()See
QFont::
cacheStatistics() -
cleanup
public static void cleanup()See
QFont::
cleanup() -
initialize
public static void initialize()See
QFont::
initialize() -
insertSubstitution
-
insertSubstitutions
-
removeSubstitutions
-
stringToTag
See
QFont::
stringToTag(const char*) -
substitute
-
substitutes
-
substitutions
-
tagToString
See
QFont::
tagToString(quint32) -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QFont>
-
hashCode
Returns the objects's hash code computed byqHash(QFont)
. -
clone
Creates and returns a copy of this object.
-
setStyleHint
Overloaded function for
setStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)
witharg__2 = io.qt.gui.QFont.StyleStrategy.PreferDefault
.
-