- 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 class
QFont::Tag type provides access to advanced font featuresstatic enum
Java wrapper for Qt enumQFont::Weight
-
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
(String font, QPaintDevice pd) Overloaded constructor forQFont(io.qt.gui.QFont, io.qt.gui.QPaintDevice)
.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 void
Overloaded function forassign(io.qt.gui.QFont)
.final boolean
bold()
static void
SeeQFont::
cacheStatistics() final QFont.Capitalization
static void
cleanup()
SeeQFont::
cleanup() final void
final void
clone()
Creates and returns a copy of this object.int
final String
final boolean
final boolean
Overloaded function forequals(io.qt.gui.QFont)
.boolean
final boolean
final QStringList
families()
final String
family()
final int
featureValue
(QFont.Tag tag) final int
featureValue
(String tag) Overloaded function forfeatureValue(io.qt.gui.QFont.Tag)
.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
Overloaded function forisCopyOf(io.qt.gui.QFont)
.final boolean
isFeatureSet
(QFont.Tag tag) final boolean
isFeatureSet
(String tag) Overloaded function forisFeatureSet(io.qt.gui.QFont.Tag)
.final boolean
final boolean
isVariableAxisSet
(String tag) Overloaded function forisVariableAxisSet(io.qt.gui.QFont.Tag)
.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 QFont
Overloaded function forresolve(io.qt.gui.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
(QFont.Tag tag, int value) final void
setFeature
(String tag, int value) Overloaded function forsetFeature(io.qt.gui.QFont.Tag, int)
.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
setVariableAxis
(QFont.Tag tag, float value) final void
setVariableAxis
(String tag, float value) Overloaded function forsetVariableAxis(io.qt.gui.QFont.Tag, float)
.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 void
unsetFeature
(QFont.Tag tag) final void
unsetFeature
(String tag) Overloaded function forunsetFeature(io.qt.gui.QFont.Tag)
.final void
final void
unsetVariableAxis
(String tag) Overloaded function forunsetVariableAxis(io.qt.gui.QFont.Tag)
.final float
final float
variableAxisValue
(String tag) Overloaded function forvariableAxisValue(io.qt.gui.QFont.Tag)
.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
- Parameters:
font
-
-
QFont
- Parameters:
font
-pd
-
-
QFont
- Parameters:
family
-pointSize
-weight
-italic
-
-
QFont
- Parameters:
families
-pointSize
-weight
-italic
-
-
QFont
Overloaded constructor for
QFont(io.qt.gui.QFont, io.qt.gui.QPaintDevice)
. -
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
- Returns:
-
capitalization
- Returns:
-
clearFeatures
- Since:
- This function was introduced in Qt 6.7.
-
clearVariableAxes
- Since:
- This function was introduced in Qt 6.7.
-
defaultFamily
- Returns:
-
exactMatch
- Returns:
-
families
- Returns:
-
family
- Returns:
-
featureTags
- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
featureValue
- Parameters:
tag
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
fixedPitch
- Returns:
-
fromString
- Parameters:
arg__1
-- Returns:
-
hintingPreference
- Returns:
-
isCopyOf
- Parameters:
arg__1
-- Returns:
-
isFeatureSet
- Parameters:
tag
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
isVariableAxisSet
- Parameters:
tag
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
italic
- Returns:
-
kerning
- Returns:
-
key
- Returns:
-
legacyWeight
See
QFont::
legacyWeight()const - Returns:
-
letterSpacing
- Returns:
-
letterSpacingType
- Returns:
-
writeTo
- Parameters:
arg__1
-
-
assign
- Parameters:
arg__1
-
-
equals
- Parameters:
arg__1
-- Returns:
-
readFrom
- Parameters:
arg__1
-
-
overline
- Returns:
-
pixelSize
- Returns:
-
pointSize
- Returns:
-
pointSizeF
- Returns:
-
resolve
- Parameters:
arg__1
-- Returns:
-
resolveMask
See
QFont::
resolveMask()const - Returns:
-
setBold
- Parameters:
arg__1
-
-
setCapitalization
- Parameters:
arg__1
-
-
setFamilies
- Parameters:
arg__1
-
-
setFamily
- Parameters:
arg__1
-
-
setFeature
- Parameters:
tag
-value
-- Since:
- This function was introduced in Qt 6.7.
-
setFixedPitch
- Parameters:
arg__1
-
-
setHintingPreference
- Parameters:
hintingPreference
-
-
setItalic
- Parameters:
b
-
-
setKerning
- Parameters:
arg__1
-
-
setLegacyWeight
See
QFont::
setLegacyWeight(int) - Parameters:
legacyWeight
-
-
setLetterSpacing
- Parameters:
type
-spacing
-
-
setOverline
- Parameters:
arg__1
-
-
setPixelSize
- Parameters:
arg__1
-
-
setPointSize
- Parameters:
arg__1
-
-
setPointSizeF
- Parameters:
arg__1
-
-
setResolveMask
See
QFont::
setResolveMask(uint) - Parameters:
mask
-
-
setStretch
- Parameters:
arg__1
-
-
setStrikeOut
- Parameters:
arg__1
-
-
setStyle
- Parameters:
style
-
-
setStyleHint
- Parameters:
arg__1
-arg__2
-
-
setStyleName
- Parameters:
arg__1
-
-
setStyleStrategy
- Parameters:
s
-
-
setUnderline
- Parameters:
arg__1
-
-
setVariableAxis
- Parameters:
tag
-value
-- Since:
- This function was introduced in Qt 6.7.
-
setWeight
- Parameters:
weight
-
-
setWordSpacing
- Parameters:
spacing
-
-
stretch
- Returns:
-
strikeOut
- Returns:
-
style
- Returns:
-
styleHint
- Returns:
-
styleName
- Returns:
-
styleStrategy
- Returns:
-
swap
- Parameters:
other
-
-
toString
-
underline
- Returns:
-
unsetFeature
- Parameters:
tag
-- Since:
- This function was introduced in Qt 6.7.
-
unsetVariableAxis
- Parameters:
tag
-- Since:
- This function was introduced in Qt 6.7.
-
variableAxisTags
- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
variableAxisValue
- Parameters:
tag
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
weight
- Returns:
-
wordSpacing
- Returns:
-
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
- Parameters:
arg__1
-arg__2
-
-
insertSubstitutions
- Parameters:
arg__1
-arg__2
-
-
removeSubstitutions
- Parameters:
arg__1
-
-
substitute
- Parameters:
arg__1
-- Returns:
-
substitutes
- Parameters:
arg__1
-- Returns:
-
substitutions
- Returns:
-
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.
-
featureValue
Overloaded function for
featureValue(io.qt.gui.QFont.Tag)
. -
isCopyOf
Overloaded function for
isCopyOf(io.qt.gui.QFont)
. -
isFeatureSet
Overloaded function for
isFeatureSet(io.qt.gui.QFont.Tag)
. -
isVariableAxisSet
Overloaded function for
isVariableAxisSet(io.qt.gui.QFont.Tag)
. -
assign
Overloaded function for
assign(io.qt.gui.QFont)
. -
equals
Overloaded function for
equals(io.qt.gui.QFont)
. -
resolve
Overloaded function for
resolve(io.qt.gui.QFont)
. -
setFeature
Overloaded function for
setFeature(io.qt.gui.QFont.Tag, int)
. -
setStyleHint
Overloaded function for
setStyleHint(io.qt.gui.QFont.StyleHint, io.qt.gui.QFont.StyleStrategy)
witharg__2 = io.qt.gui.QFont.StyleStrategy.PreferDefault
. -
setVariableAxis
Overloaded function for
setVariableAxis(io.qt.gui.QFont.Tag, float)
. -
unsetFeature
Overloaded function for
unsetFeature(io.qt.gui.QFont.Tag)
. -
unsetVariableAxis
Overloaded function for
unsetVariableAxis(io.qt.gui.QFont.Tag)
. -
variableAxisValue
Overloaded function for
variableAxisValue(io.qt.gui.QFont.Tag)
.
-