- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Access to a single physical instance of a font
Java wrapper for Qt class QRawFont
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQRawFont::AntialiasingType
static enum
Java wrapper for Qt enumQRawFont::LayoutFlag
static final class
QFlags
type for enumQRawFont.LayoutFlag
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionQRawFont()
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) 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<@QtPrimitiveType Integer> glyphIndexes) advancesForGlyphIndexes
(Collection<@QtPrimitiveType Integer> glyphIndexes, QRawFont.LayoutFlag ... layoutFlags) Overloaded function foradvancesForGlyphIndexes(java.util.Collection, io.qt.gui.QRawFont.LayoutFlags)
.advancesForGlyphIndexes
(Collection<@QtPrimitiveType 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 void
final double
final QRectF
boundingRect
(int glyphIndex) final double
clone()
Creates and returns a copy of this object.final double
descent()
boolean
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) final QVector<@QtPrimitiveType Integer>
glyphIndexesForString
(String text) int
hashCode()
Returns the objects's hash code computed byqHash(QRawFont)
.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
-
-
Method Details
-
advancesForGlyphIndexes
@QtUninvokable public final QVector<QPointF> advancesForGlyphIndexes(Collection<@QtPrimitiveType Integer> glyphIndexes) -
advancesForGlyphIndexes
@QtUninvokable public final QVector<QPointF> advancesForGlyphIndexes(Collection<@QtPrimitiveType 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<@QtPrimitiveType 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
-
assign
-
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
-
hashCode
Returns the objects's hash code computed byqHash(QRawFont)
. -
clone
Creates and returns a copy of this object.
-