Class AttrFontFeatures

All Implemented Interfaces:
PointerInterface

public class AttrFontFeatures extends Record
The `PangoAttrFontFeatures` structure is used to represent OpenType
font features as an attribute.

https://docs.gtk.org/Pango/struct.AttrFontFeatures.html

  • Field Details

  • Constructor Details

    • AttrFontFeatures

      public AttrFontFeatures(PointerContainer pointer)
    • AttrFontFeatures

      public AttrFontFeatures()
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • setFieldFeatures

      public void setFieldFeatures(Str features)
      the features, as a string in CSS syntax
    • getFieldFeatures

      public Str getFieldFeatures()
      the features, as a string in CSS syntax
    • _new

      public static Attribute _new(@Nonnull Str 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](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]