Class Fontset

All Implemented Interfaces:
PointerInterface
Direct Known Subclasses:
FontsetSimple

public class Fontset extends Object
A `PangoFontset` represents a set of `PangoFont` to use when rendering text.

A `PangoFontset` is the result of resolving a `PangoFontDescription`
against a particular `PangoContext`. It has operations for finding the
component font for a particular Unicode character, and for finding a
composite set of metrics for the entire fontset.

https://docs.gtk.org/Pango/class.Fontset.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • foreach

      public void foreach(Fontset.OnFontsetForeachFunc func, @Nullable Pointer data)
      Iterates through all the fonts in a fontset, calling @func for
      each one.

      If @func returns %TRUE, that stops the iteration.
      Parameters:
      func - Callback function
      data - data to pass to the callback function
    • getFont

      public Font getFont(int wc)
      Returns the font in the fontset that contains the best
      glyph for a Unicode character.
      Parameters:
      wc - a Unicode character
      Returns:
      a `PangoFont`
    • getMetrics

      public FontMetrics getMetrics()
      Get overall metric information for the fonts in the fontset.
      Returns:
      a `PangoFontMetrics` object
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()