Package org.gnome.pango
Class AttrFontFeatures
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.pango.AttrFontFeatures
- All Implemented Interfaces:
Proxy
The
PangoAttrFontFeatures
structure is used to represent OpenType
font features as an attribute.-
Constructor Summary
ConstructorDescriptionAllocate a new AttrFontFeatures.AttrFontFeatures
(Arena arena) Allocate a new AttrFontFeatures.AttrFontFeatures
(MemorySegment address) Create a AttrFontFeatures proxy instance for the provided memory address.AttrFontFeatures
(Attribute attr, String features) Allocate a new AttrFontFeatures with the fields set to the provided values.AttrFontFeatures
(Attribute attr, String features, Arena arena) Allocate a new AttrFontFeatures with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.static Attribute
Create a new font features tag attribute.readAttr()
Read the value of the fieldattr
.Read the value of the fieldfeatures
.void
Write a value in the fieldattr
.void
writeFeatures
(String features, Arena _arena) Write a value in the fieldfeatures
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
AttrFontFeatures
Create a AttrFontFeatures proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
AttrFontFeatures
Allocate a new AttrFontFeatures.- Parameters:
arena
- to control the memory allocation scope
-
AttrFontFeatures
public AttrFontFeatures()Allocate a new AttrFontFeatures. The memory is allocated withArena.ofAuto()
. -
AttrFontFeatures
-
AttrFontFeatures
Allocate a new AttrFontFeatures with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
attr
- value for the fieldattr
features
- value for the fieldfeatures
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readAttr
-
writeAttr
Write a value in the fieldattr
.- Parameters:
attr
- The new value for the fieldattr
-
readFeatures
Read the value of the fieldfeatures
.- Returns:
- The value of the field
features
-
writeFeatures
-
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 withAttribute.destroy()
-