Package ch.bailu.gtk.pango
Class AttrFontFeatures
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.pango.AttrFontFeatures
- All Implemented Interfaces:
PointerInterface
The `PangoAttrFontFeatures` structure is used to represent OpenType
font features as an attribute.
font features as an attribute.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Attribute
Create a new font features tag attribute.static ClassHandler
the features, as a string in CSS syntaxvoid
setFieldFeatures
(Str features) the features, as a string in CSS syntaxMethods 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
-
Field Details
-
ATTR
the common portion of the attribute
Private field: direct-type- See Also:
-
FEATURES
the features, as a string in CSS syntax- See Also:
-
-
Constructor Details
-
AttrFontFeatures
-
AttrFontFeatures
public AttrFontFeatures()
-
-
Method Details
-
getClassHandler
-
setFieldFeatures
the features, as a string in CSS syntax -
getFieldFeatures
the features, as a string in CSS syntax -
_new
Create a new font features tag attribute.
You can use this attribute to select OpenType font features like small-caps,
alternative glyphs, ligatures, etc. for fonts that support them.- Parameters:
features
- a string with OpenType font features, with the syntax of the [CSS font-feature-settings property](https://www.w3.org/TR/css-fonts-4/#font-rend-desc)- Returns:
- the newly allocated `PangoAttribute`, which should be freed with [method@Pango.Attribute.destroy]
-