Class AttrFontFeatures

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.pango.AttrFontFeatures
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class AttrFontFeatures extends ProxyInstance
The PangoAttrFontFeatures structure is used to represent OpenType font features as an attribute.
Since:
1.38
  • Constructor Details

    • AttrFontFeatures

      public AttrFontFeatures(MemorySegment address)
      Create a AttrFontFeatures proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • AttrFontFeatures

      public AttrFontFeatures(Arena arena)
      Allocate a new AttrFontFeatures.
      Parameters:
      arena - to control the memory allocation scope
    • AttrFontFeatures

      public AttrFontFeatures()
      Allocate a new AttrFontFeatures. The memory is allocated with Arena.ofAuto().
    • AttrFontFeatures

      public AttrFontFeatures(Attribute attr, String features, Arena arena)
      Allocate a new AttrFontFeatures with the fields set to the provided values.
      Parameters:
      attr - value for the field attr
      features - value for the field features
      arena - to control the memory allocation scope
    • AttrFontFeatures

      public AttrFontFeatures(Attribute attr, String features)
      Allocate a new AttrFontFeatures with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      attr - value for the field attr
      features - value for the field features
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readAttr

      public @Nullable Attribute readAttr()
      Read the value of the field attr.
      Returns:
      The value of the field attr
    • writeAttr

      public void writeAttr(@Nullable Attribute attr)
      Write a value in the field attr.
      Parameters:
      attr - The new value for the field attr
    • readFeatures

      public String readFeatures()
      Read the value of the field features.
      Returns:
      The value of the field features
    • writeFeatures

      public void writeFeatures(String features, Arena _arena)
      Write a value in the field features.
      Parameters:
      features - The new value for the field features
      _arena - to control the memory allocation scope
    • new_

      public static Attribute new_(String features)

      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
      Returns:
      the newly allocated PangoAttribute, which should be freed with Attribute.destroy()
      Since:
      1.38