- 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
-
Constructor Summary
ConstructorDescriptionQRawFont()
QRawFont
(byte [] fontData, double pixelSize) Overloaded constructor forQRawFont(byte[], double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
.QRawFont
(byte [] fontData, double pixelSize, QFont.HintingPreference hintingPreference) Overloaded constructor forQRawFont(io.qt.core.QByteArray, double, io.qt.gui.QFont.HintingPreference)
.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()
final boolean
boolean
final String
final QByteArray
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) static QRawFont
Overloaded function forfromFont(java.lang.String, io.qt.gui.QFontDatabase.WritingSystem)
withwritingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any
.static QRawFont
fromFont
(String font, QFontDatabase.WritingSystem writingSystem) Overloaded function forfromFont(io.qt.gui.QFont, io.qt.gui.QFontDatabase.WritingSystem)
.final QList<@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
(byte [] fontData, double pixelSize, QFont.HintingPreference hintingPreference) Overloaded function forloadFromData(io.qt.core.QByteArray, double, io.qt.gui.QFont.HintingPreference)
.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
- Parameters:
fontData
-pixelSize
-hintingPreference
-
-
QRawFont
- Parameters:
other
-
-
QRawFont
- Parameters:
fileName
-pixelSize
-hintingPreference
-
-
QRawFont
Overloaded constructor for
QRawFont(io.qt.core.QByteArray, double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
. -
QRawFont
public QRawFont(byte [] fontData, double pixelSize) Overloaded constructor for
QRawFont(byte[], double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
. -
QRawFont
Overloaded constructor for
QRawFont(io.qt.core.QByteArray, double, io.qt.gui.QFont.HintingPreference)
. -
QRawFont
Overloaded constructor for
QRawFont(java.lang.String, double, io.qt.gui.QFont.HintingPreference)
withhintingPreference = io.qt.gui.QFont.HintingPreference.PreferDefaultHinting
.
-
-
Method Details
-
advancesForGlyphIndexes
@QtUninvokable public final QList<QPointF> advancesForGlyphIndexes(Collection<@QtPrimitiveType Integer> glyphIndexes) - Parameters:
glyphIndexes
-- Returns:
-
advancesForGlyphIndexes
@QtUninvokable public final QList<QPointF> advancesForGlyphIndexes(Collection<@QtPrimitiveType Integer> glyphIndexes, QRawFont.LayoutFlags layoutFlags) - Parameters:
glyphIndexes
-layoutFlags
-- Returns:
-
alphaMapForGlyph
@QtUninvokable public final QImage alphaMapForGlyph(int glyphIndex, QRawFont.AntialiasingType antialiasingType, QTransform transform) - Parameters:
glyphIndex
-antialiasingType
-transform
-- Returns:
-
ascent
- Returns:
-
averageCharWidth
- Returns:
-
boundingRect
- Parameters:
glyphIndex
-- Returns:
-
capHeight
- Returns:
-
descent
- Returns:
-
familyName
- Returns:
-
fontTable
- Parameters:
tag
-- Returns:
- Since:
- This function was introduced in Qt 6.7.
-
fontTable
- Parameters:
tagName
-- Returns:
-
glyphIndexesForString
- Parameters:
text
-- Returns:
-
hintingPreference
- Returns:
-
isValid
- Returns:
-
leading
- Returns:
-
lineThickness
- Returns:
-
loadFromData
@QtUninvokable public final void loadFromData(QByteArray fontData, double pixelSize, QFont.HintingPreference hintingPreference) - Parameters:
fontData
-pixelSize
-hintingPreference
-
-
loadFromFile
@QtUninvokable public final void loadFromFile(String fileName, double pixelSize, QFont.HintingPreference hintingPreference) - Parameters:
fileName
-pixelSize
-hintingPreference
-
-
maxCharWidth
- Returns:
-
assign
- Parameters:
other
-
-
equals
- Parameters:
other
-- Returns:
-
pathForGlyph
- Parameters:
glyphIndex
-- Returns:
-
pixelSize
- Returns:
-
setPixelSize
- Parameters:
pixelSize
-
-
style
- Returns:
-
styleName
- Returns:
-
supportedWritingSystems
- Returns:
-
supportsCharacter
- Parameters:
character
-- Returns:
-
supportsCharacter
- Parameters:
ucs4
-- Returns:
-
swap
- Parameters:
other
-
-
underlinePosition
- Returns:
-
unitsPerEm
- Returns:
-
weight
- Returns:
-
xHeight
- Returns:
-
fromFont
- Parameters:
font
-writingSystem
-- Returns:
-
equals
-
hashCode
Returns the objects's hash code computed byqHash(QRawFont)
. -
clone
Creates and returns a copy of this object.
-
advancesForGlyphIndexes
@QtUninvokable public final QList<QPointF> advancesForGlyphIndexes(Collection<@QtPrimitiveType Integer> glyphIndexes, QRawFont.LayoutFlag ... layoutFlags) Overloaded function for
advancesForGlyphIndexes(java.util.Collection, io.qt.gui.QRawFont.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()
-
loadFromData
@QtUninvokable public final void loadFromData(byte [] fontData, double pixelSize, QFont.HintingPreference hintingPreference) Overloaded function for
loadFromData(io.qt.core.QByteArray, double, io.qt.gui.QFont.HintingPreference)
. -
fromFont
Overloaded function for
fromFont(io.qt.gui.QFont, io.qt.gui.QFontDatabase.WritingSystem)
withwritingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any
. -
fromFont
Overloaded function for
fromFont(java.lang.String, io.qt.gui.QFontDatabase.WritingSystem)
withwritingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any
. -
fromFont
Overloaded function for
fromFont(io.qt.gui.QFont, io.qt.gui.QFontDatabase.WritingSystem)
.
-