Package ch.bailu.gtk.pango
Class FontFamily
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gobject.Object
ch.bailu.gtk.pango.FontFamily
- All Implemented Interfaces:
PointerInterface
A `PangoFontFamily` is used to represent a family of related
font faces.
The font faces in a family share a common design, but differ in
slant, weight, width or other aspects.
font faces.
The font faces in a family share a common design, but differ in
slant, weight, width or other aspects.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gobject.Object
Object.OnBindingTransformFunc, Object.OnDestroyNotify, Object.OnDuplicateFunc, Object.OnNotify, Object.OnToggleNotify, Object.OnWeakNotify
-
Field Summary
Fields inherited from class ch.bailu.gtk.gobject.Object
SIGNAL_ON_NOTIFY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionImplements interfaceListModel
.static ClassHandler
Gets the `PangoFontFace` of @family with the given name.Gets the `PangoFontFace` of @family with the given name.static int
getName()
Gets the name of the family.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
boolean
A monospace font is a font designed for text display where the the
characters form a regular grid.boolean
A variable font is a font which has axes that can be modified to
produce different faces.Methods inherited from class ch.bailu.gtk.gobject.Object
addToggleRef, bindProperty, bindProperty, bindPropertyFull, bindPropertyFull, bindPropertyWithClosures, bindPropertyWithClosures, compatControl, connect, connect, disconnect, disconnect, dupData, dupData, dupQdata, forceFloating, freezeNotify, get, get, getData, getData, getProperty, getProperty, getQdata, interfaceFindProperty, interfaceInstallProperty, isFloating, notify, notify, notifyByPspec, onNotify, ref, refSink, removeToggleRef, replaceData, replaceData, replaceQdata, runDispose, set, set, setData, setData, setDataFull, setDataFull, setProperty, setProperty, setQdata, setQdataFull, stealData, stealData, stealQdata, takeRef, thawNotify, unref, watchClosure, weakRef, weakUnref
Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Constructor Details
-
FontFamily
-
-
Method Details
-
getClassHandler
-
getFace
Gets the `PangoFontFace` of @family with the given name.- Parameters:
name
- the name of a face. If the name is %NULL, the family's default face (fontconfig calls it "Regular") will be returned.- Returns:
- the `PangoFontFace`, or %NULL if no face with the given name exists.
-
getFace
Gets the `PangoFontFace` of @family with the given name.- Parameters:
name
- the name of a face. If the name is %NULL, the family's default face (fontconfig calls it "Regular") will be returned.- Returns:
- the `PangoFontFace`, or %NULL if no face with the given name exists.
-
getName
Gets the name of the family.
The name is unique among all fonts for the font backend and can
be used in a `PangoFontDescription` to specify that a face from
this family is desired.- Returns:
- the name of the family. This string is owned by the family object and must not be modified or freed.
-
isMonospace
public boolean isMonospace()A monospace font is a font designed for text display where the the
characters form a regular grid.
For Western languages this would
mean that the advance width of all characters are the same, but
this categorization also includes Asian fonts which include
double-width characters: characters that occupy two grid cells.
g_unichar_iswide() returns a result that indicates whether a
character is typically double-width in a monospace font.
The best way to find out the grid-cell size is to call
[method@Pango.FontMetrics.get_approximate_digit_width], since the
results of [method@Pango.FontMetrics.get_approximate_char_width] may
be affected by double-width characters.- Returns:
- %TRUE if the family is monospace.
-
isVariable
public boolean isVariable()A variable font is a font which has axes that can be modified to
produce different faces.
Such axes are also known as _variations_; see
[method@Pango.FontDescription.set_variations] for more information.- Returns:
- %TRUE if the family is variable
-
asListModel
Implements interfaceListModel
. Call this to get access to interface functions.- Returns:
ListModel
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-