Protocols

The following protocols are available globally.

Font Interface

  • PangoCairoFont is an interface exported by fonts for use with Cairo.

    The actual type of the font will depend on the particular font technology Cairo was compiled to use.

    The FontProtocol protocol exposes the methods and properties of an underlying PangoCairoFont 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 Font. Alternatively, use FontRef as a lighweight, unowned reference if you already have an instance you just want to use.

    See more

    Declaration

    Swift

    public protocol FontProtocol

FontMap Interface

  • PangoCairoFontMap is an interface exported by font maps for use with Cairo.

    The actual type of the font map will depend on the particular font technology Cairo was compiled to use.

    The FontMapProtocol protocol exposes the methods and properties of an underlying PangoCairoFontMap 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 FontMap. Alternatively, use FontMapRef as a lighweight, unowned reference if you already have an instance you just want to use.

    See more

    Declaration

    Swift

    public protocol FontMapProtocol