- All Implemented Interfaces:
QtObjectInterface
,Cloneable
Information about the fonts available in the underlying window system
Java wrapper for Qt class QFontDatabase
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enumQFontDatabase::SystemFont
static enum
Java wrapper for Qt enumQFontDatabase::WritingSystem
-
Field Summary
Modifier and TypeFieldDescriptionstatic final QMetaObject
This variable stores the meta-object for the class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
addApplicationFont
(String fileName) static int
addApplicationFontFromData
(byte [] fontData) Overloaded function foraddApplicationFontFromData(io.qt.core.QByteArray)
.static int
addApplicationFontFromData
(QByteArray fontData) static QStringList
applicationFontFamilies
(int id) final boolean
clone()
Creates and returns a copy of this object.final QStringList
families()
Overloaded function forfamilies(io.qt.gui.QFontDatabase.WritingSystem)
withwritingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any
.final QStringList
families
(QFontDatabase.WritingSystem writingSystem) final QFont
final boolean
SeeQFontDatabase::
hasFamily(QString)const final boolean
isBitmapScalable
(String family) Overloaded function forisBitmapScalable(java.lang.String, java.lang.String)
withstyle = (String)null
.final boolean
isBitmapScalable
(String family, String style) final boolean
isFixedPitch
(String family) Overloaded function forisFixedPitch(java.lang.String, java.lang.String)
withstyle = (String)null
.final boolean
isFixedPitch
(String family, String style) final boolean
isPrivateFamily
(String family) final boolean
isScalable
(String family) Overloaded function forisScalable(java.lang.String, java.lang.String)
withstyle = (String)null
.final boolean
isScalable
(String family, String style) final boolean
isSmoothlyScalable
(String family) Overloaded function forisSmoothlyScalable(java.lang.String, java.lang.String)
withstyle = (String)null
.final boolean
isSmoothlyScalable
(String family, String style) final boolean
final QList<@QtPrimitiveType Integer>
pointSizes
(String family) Overloaded function forpointSizes(java.lang.String, java.lang.String)
withstyle = (String)null
.final QList<@QtPrimitiveType Integer>
pointSizes
(String family, String style) static boolean
static boolean
removeApplicationFont
(int id) final QList<@QtPrimitiveType Integer>
smoothSizes
(String family, String style) static QList<@QtPrimitiveType Integer>
final QStringList
final String
styleString
(QFont font) final String
styleString
(QFontInfo fontInfo) final String
styleString
(String font) Overloaded function forstyleString(io.qt.gui.QFont)
.static boolean
static QFont
final int
static String
writingSystemName
(QFontDatabase.WritingSystem writingSystem) final QList<QFontDatabase.WritingSystem>
final QList<QFontDatabase.WritingSystem>
writingSystems
(String family) static String
writingSystemSample
(QFontDatabase.WritingSystem writingSystem) Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
Field Details
-
staticMetaObject
This variable stores the meta-object for the class.
-
-
Constructor Details
-
QFontDatabase
public QFontDatabase() -
QFontDatabase
- Parameters:
other
-
-
-
Method Details
-
bold
- Parameters:
family
-style
-- Returns:
-
families
- Parameters:
writingSystem
-- Returns:
-
font
- Parameters:
family
-style
-pointSize
-- Returns:
-
hasFamily
See
QFontDatabase::
hasFamily(QString)const - Parameters:
family
-- Returns:
-
isBitmapScalable
- Parameters:
family
-style
-- Returns:
-
isFixedPitch
- Parameters:
family
-style
-- Returns:
-
isPrivateFamily
- Parameters:
family
-- Returns:
- Since:
- This function was introduced in Qt 5.5.
-
isScalable
- Parameters:
family
-style
-- Returns:
-
isSmoothlyScalable
- Parameters:
family
-style
-- Returns:
-
italic
- Parameters:
family
-style
-- Returns:
-
pointSizes
- Parameters:
family
-style
-- Returns:
-
smoothSizes
@QtUninvokable public final QList<@QtPrimitiveType Integer> smoothSizes(String family, String style) - Parameters:
family
-style
-- Returns:
-
styleString
- Parameters:
font
-- Returns:
-
styleString
- Parameters:
fontInfo
-- Returns:
-
styles
- Parameters:
family
-- Returns:
-
weight
- Parameters:
family
-style
-- Returns:
-
writingSystems
- Returns:
-
writingSystems
- Parameters:
family
-- Returns:
-
addApplicationFont
- Parameters:
fileName
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
addApplicationFontFromData
- Parameters:
fontData
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
applicationFontFamilies
- Parameters:
id
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
removeAllApplicationFonts
public static boolean removeAllApplicationFonts()- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
removeApplicationFont
public static boolean removeApplicationFont(int id) - Parameters:
id
-- Returns:
- Since:
- This function was introduced in Qt 4.2.
-
standardSizes
- Returns:
-
supportsThreadedFontRendering
public static boolean supportsThreadedFontRendering()- Returns:
- Since:
- This function was introduced in Qt 4.4.
-
systemFont
- Parameters:
type
-- Returns:
- Since:
- This function was introduced in Qt 5.2.
-
writingSystemName
- Parameters:
writingSystem
-- Returns:
-
writingSystemSample
- Parameters:
writingSystem
-- Returns:
-
clone
Creates and returns a copy of this object.
-
families
Overloaded function for
families(io.qt.gui.QFontDatabase.WritingSystem)
withwritingSystem = io.qt.gui.QFontDatabase.WritingSystem.Any
. -
isBitmapScalable
Overloaded function for
isBitmapScalable(java.lang.String, java.lang.String)
withstyle = (String)null
. -
isFixedPitch
Overloaded function for
isFixedPitch(java.lang.String, java.lang.String)
withstyle = (String)null
. -
isScalable
Overloaded function for
isScalable(java.lang.String, java.lang.String)
withstyle = (String)null
. -
isSmoothlyScalable
Overloaded function for
isSmoothlyScalable(java.lang.String, java.lang.String)
withstyle = (String)null
. -
pointSizes
Overloaded function for
pointSizes(java.lang.String, java.lang.String)
withstyle = (String)null
. -
styleString
Overloaded function for
styleString(io.qt.gui.QFont)
. -
addApplicationFontFromData
public static int addApplicationFontFromData(byte [] fontData) Overloaded function for
addApplicationFontFromData(io.qt.core.QByteArray)
.
-