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
Modifier and Type Method Description boolean
bold()
static void
cacheStatistics()
QFont.Capitalization
capitalization()
static void
cleanup()
QFont
clone()
int
compareTo(QFont other)
String
defaultFamily()
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.boolean
exactMatch()
List<String>
families()
String
family()
boolean
fixedPitch()
boolean
fromString(String arg__1)
int
hashCode()
QFont.HintingPreference
hintingPreference()
static void
initialize()
static void
insertSubstitution(String arg__1, String arg__2)
static void
insertSubstitutions(String arg__1, Collection<String> arg__2)
boolean
isCopyOf(QFont arg__1)
boolean
italic()
boolean
kerning()
String
key()
String
lastResortFamily()
Deprecated.String
lastResortFont()
Deprecated.double
letterSpacing()
QFont.SpacingType
letterSpacingType()
boolean
overline()
int
pixelSize()
int
pointSize()
double
pointSizeF()
boolean
rawMode()
String
rawName()
Deprecated.void
readFrom(QDataStream arg__1)
static void
removeSubstitutions(String arg__1)
int
resolve()
void
resolve(int mask)
QFont
resolve(QFont arg__1)
void
setBold(boolean arg__1)
void
setCapitalization(QFont.Capitalization arg__1)
void
setFamilies(Collection<String> arg__1)
void
setFamily(String arg__1)
void
setFixedPitch(boolean arg__1)
void
setHintingPreference(QFont.HintingPreference hintingPreference)
void
setItalic(boolean b)
void
setKerning(boolean arg__1)
void
setLetterSpacing(QFont.SpacingType type, double spacing)
void
setOverline(boolean arg__1)
void
setPixelSize(int arg__1)
void
setPointSize(int arg__1)
void
setPointSizeF(double arg__1)
void
setRawMode(boolean arg__1)
void
setRawName(String arg__1)
Deprecated.void
setStretch(int arg__1)
void
setStrikeOut(boolean arg__1)
void
setStyle(QFont.Style style)
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
.void
setStyleHint(QFont.StyleHint arg__1, QFont.StyleStrategy arg__2)
void
setStyleName(String arg__1)
void
setStyleStrategy(QFont.StyleStrategy s)
void
setUnderline(boolean arg__1)
void
setWeight(int arg__1)
void
setWordSpacing(double spacing)
int
stretch()
boolean
strikeOut()
QFont.Style
style()
QFont.StyleHint
styleHint()
String
styleName()
QFont.StyleStrategy
styleStrategy()
static String
substitute(String arg__1)
static List<String>
substitutes(String arg__1)
static List<String>
substitutions()
void
swap(QFont other)
String
toString()
boolean
underline()
int
weight()
double
wordSpacing()
void
writeTo(QDataStream arg__1)
-
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
-
lastResortFamily
Deprecated. -
lastResortFont
Deprecated. -
letterSpacing
-
letterSpacingType
-
writeTo
-
readFrom
-
overline
-
pixelSize
-
pointSize
-
pointSizeF
-
rawMode
-
rawName
Deprecated. -
resolve
-
resolve
-
resolve
-
setBold
-
setCapitalization
-
setFamilies
-
setFamily
-
setFixedPitch
-
setHintingPreference
-
setItalic
-
setKerning
-
setLetterSpacing
-
setOverline
-
setPixelSize
-
setPointSize
-
setPointSizeF
-
setRawMode
-
setRawName
Deprecated. -
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
public int hashCode() -
clone
-