- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Access to a single physical instance of a font
Java wrapper for Qt's class QRawFont
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QRawFont::AntialiasingTypestatic enum
Java wrapper for Qt enum QRawFont::LayoutFlagstatic final class
QFlags type for enumQRawFont.LayoutFlag
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQRawFont()
QRawFont
(QByteArray fontData, double pixelSize) Overloaded constructor forQRawFont(io.qt.core.QByteArray, double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
.QRawFont
(QByteArray fontData, double pixelSize, QFont.HintingPreference hintingPreference) protected
Constructor for internal use only.Overloaded constructor forQRawFont(java.lang.String, double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
.QRawFont
(String fileName, double pixelSize, QFont.HintingPreference hintingPreference) -
Method Summary
Modifier and TypeMethodDescriptionadvancesForGlyphIndexes
(Collection<Integer> glyphIndexes) advancesForGlyphIndexes
(Collection<Integer> glyphIndexes, QRawFont.LayoutFlag... layoutFlags) Overloaded function foradvancesForGlyphIndexes(java.util.Collection, io.qt.gui.QRawFont.LayoutFlags)
.advancesForGlyphIndexes
(Collection<Integer> glyphIndexes, QRawFont.LayoutFlags layoutFlags) final QImage
alphaMapForGlyph
(int glyphIndex) Overloaded function foralphaMapForGlyph(int, io.qt.gui.QRawFont.AntialiasingType, io.qt.gui.QTransform)
final QImage
alphaMapForGlyph
(int glyphIndex, QRawFont.AntialiasingType antialiasingType) Overloaded function foralphaMapForGlyph(int, io.qt.gui.QRawFont.AntialiasingType, io.qt.gui.QTransform)
withtransform = new io.qt.gui.QTransform()
.final QImage
alphaMapForGlyph
(int glyphIndex, QRawFont.AntialiasingType antialiasingType, QTransform transform) final double
ascent()
final double
final QRectF
boundingRect
(int glyphIndex) final double
clone()
final double
descent()
boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.final String
final QByteArray
static QRawFont
Overloaded function forfromFont(io.qt.gui.QFont, io.qt.gui.QFontDatabase.WritingSystem)
withwritingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any
.static QRawFont
fromFont
(QFont font, QFontDatabase.WritingSystem writingSystem) glyphIndexesForString
(String text) int
hashCode()
final QFont.HintingPreference
final boolean
isValid()
final double
leading()
final double
final void
loadFromData
(QByteArray fontData, double pixelSize, QFont.HintingPreference hintingPreference) final void
loadFromFile
(String fileName, double pixelSize, QFont.HintingPreference hintingPreference) final double
final QPainterPath
pathForGlyph
(int glyphIndex) final double
final void
setPixelSize
(double pixelSize) final QFont.Style
style()
final String
final QList<QFontDatabase.WritingSystem>
final boolean
supportsCharacter
(char character) final boolean
supportsCharacter
(int ucs4) final void
final double
final double
final int
weight()
final double
xHeight()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QRawFont
public QRawFont() -
QRawFont
Overloaded constructor for
QRawFont(io.qt.core.QByteArray, double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
. -
QRawFont
-
QRawFont
-
QRawFont
Overloaded constructor for
QRawFont(java.lang.String, double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
. -
QRawFont
-
QRawFont
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
advancesForGlyphIndexes
@QtUninvokable public final QVector<QPointF> advancesForGlyphIndexes(Collection<Integer> glyphIndexes) -
advancesForGlyphIndexes
@QtUninvokable public final QVector<QPointF> advancesForGlyphIndexes(Collection<Integer> glyphIndexes, QRawFont.LayoutFlag... layoutFlags) Overloaded function for
advancesForGlyphIndexes(java.util.Collection, io.qt.gui.QRawFont.LayoutFlags)
. -
advancesForGlyphIndexes
@QtUninvokable public final QVector<QPointF> advancesForGlyphIndexes(Collection<Integer> glyphIndexes, QRawFont.LayoutFlags layoutFlags) -
alphaMapForGlyph
@QtUninvokable public final QImage alphaMapForGlyph(int glyphIndex, QRawFont.AntialiasingType antialiasingType) Overloaded function for
alphaMapForGlyph(int, io.qt.gui.QRawFont.AntialiasingType, io.qt.gui.QTransform)
withtransform = new io.qt.gui.QTransform()
. -
alphaMapForGlyph
Overloaded function for
alphaMapForGlyph(int, io.qt.gui.QRawFont.AntialiasingType, io.qt.gui.QTransform)
with:
antialiasingType = io.qt.gui.QRawFont.AntialiasingType.SubPixelAntialiasing
transform = new io.qt.gui.QTransform()
-
alphaMapForGlyph
@QtUninvokable public final QImage alphaMapForGlyph(int glyphIndex, QRawFont.AntialiasingType antialiasingType, QTransform transform) -
ascent
-
averageCharWidth
-
boundingRect
-
capHeight
-
descent
-
familyName
-
fontTable
-
glyphIndexesForString
-
hintingPreference
-
isValid
-
leading
-
lineThickness
-
loadFromData
@QtUninvokable public final void loadFromData(QByteArray fontData, double pixelSize, QFont.HintingPreference hintingPreference) -
loadFromFile
@QtUninvokable public final void loadFromFile(String fileName, double pixelSize, QFont.HintingPreference hintingPreference) -
maxCharWidth
-
pathForGlyph
-
pixelSize
-
setPixelSize
-
style
-
styleName
-
supportedWritingSystems
-
supportsCharacter
-
supportsCharacter
-
swap
-
underlinePosition
-
unitsPerEm
-
weight
-
xHeight
-
fromFont
Overloaded function for
fromFont(io.qt.gui.QFont, io.qt.gui.QFontDatabase.WritingSystem)
withwritingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any
. -
fromFont
-
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. -
hashCode
-
clone
-