FontFaceProtocol

public protocol FontFaceProtocol : ObjectProtocol

A PangoFontFace is used to represent a group of fonts with the same family, slant, weight, and width, but varying sizes.

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

  • ptr

    Untyped pointer to the underlying PangoFontFace instance.

    Declaration

    Swift

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

    Typed pointer to the underlying PangoFontFace instance.

    Default Implementation

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

    Declaration

    Swift

    var font_face_ptr: UnsafeMutablePointer<PangoFontFace>! { get }
  • Required Initialiser for types conforming to FontFaceProtocol

    Declaration

    Swift

    init(raw: UnsafeMutableRawPointer)

FontFace Class: FontFaceProtocol extension (methods and fields)

  • describe() Extension method

    Returns a font description that matches the face.

    The resulting font description will have the family, style, variant, weight and stretch of the face, but its size field will be unset.

    Declaration

    Swift

    @inlinable
    func describe() -> Pango.FontDescriptionRef!
  • getFaceName() Extension method

    Gets a name representing the style of this face.

    Note that a font family may contain multiple faces with the same name (e.g. a variable and a non-variable face for the same style).

    Declaration

    Swift

    @inlinable
    func getFaceName() -> String!
  • getFamily() Extension method

    Gets the PangoFontFamily that face belongs to.

    Declaration

    Swift

    @inlinable
    func getFamily() -> Pango.FontFamilyRef!
  • list(sizes:nSizes:) Extension method

    List the available sizes for a font.

    This is only applicable to bitmap fonts. For scalable fonts, stores nil at the location pointed to by sizes and 0 at the location pointed to by n_sizes. The sizes returned are in Pango units and are sorted in ascending order.

    Declaration

    Swift

    @inlinable
    func list(sizes: UnsafeMutablePointer<UnsafeMutablePointer<CInt>?>! = nil, nSizes: UnsafeMutablePointer<gint>!)
  • faceName Extension method

    Gets a name representing the style of this face.

    Note that a font family may contain multiple faces with the same name (e.g. a variable and a non-variable face for the same style).

    Declaration

    Swift

    @inlinable
    var faceName: String! { get }
  • family Extension method

    Gets the PangoFontFamily that face belongs to.

    Declaration

    Swift

    @inlinable
    var family: Pango.FontFamilyRef! { get }
  • isSynthesized Extension method

    Returns whether a PangoFontFace is synthesized.

    This will be the case if the underlying font rendering engine creates this face from another face, by shearing, emboldening, lightening or modifying it in some other way.

    Declaration

    Swift

    @inlinable
    var isSynthesized: Bool { get }
  • parentInstance Extension method

    Undocumented

    Declaration

    Swift

    @inlinable
    var parentInstance: GObject { get }