FontsetProtocol

public protocol FontsetProtocol : ObjectProtocol

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.

The FontsetProtocol protocol exposes the methods and properties of an underlying PangoFontset instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see Fontset. Alternatively, use FontsetRef as a lighweight, unowned reference if you already have an instance you just want to use.

  • ptr

    Untyped pointer to the underlying PangoFontset instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • fontset_ptr Default implementation

    Typed pointer to the underlying PangoFontset instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the PangoFontset instance.

    Declaration

    Swift

    var fontset_ptr: UnsafeMutablePointer<PangoFontset>! { get }
  • Required Initialiser for types conforming to FontsetProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

Fontset Class: FontsetProtocol extension (methods and fields)

  • foreach(func:data:) Extension method

    Iterates through all the fonts in a fontset, calling func for each one.

    If func returns true, that stops the iteration.

    Declaration

    Swift

    @inlinable
    func foreach(func: PangoFontsetForeachFunc?, data: gpointer? = nil)
  • getFont(wc:) Extension method

    Returns the font in the fontset that contains the best glyph for a Unicode character.

    Declaration

    Swift

    @inlinable
    func getFont(wc: Int) -> Pango.FontRef!
  • getMetrics() Extension method

    Get overall metric information for the fonts in the fontset.

    Declaration

    Swift

    @inlinable
    func getMetrics() -> Pango.FontMetricsRef!
  • metrics Extension method

    Get overall metric information for the fonts in the fontset.

    Declaration

    Swift

    @inlinable
    var metrics: Pango.FontMetricsRef! { get }
  • parentInstance Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parentInstance: GObject { get }