ScaledFontRef

public struct ScaledFontRef : ScaledFontProtocol

The ScaledFontRef type acts as a lightweight Swift reference to an underlying cairo_scaled_font_t instance. It exposes methods that can operate on this data type through ScaledFontProtocol conformance. Use ScaledFontRef only as an unowned reference to an existing cairo_scaled_font_t instance.

  • ptr

    Untyped pointer to the underlying cairo_scaled_font_t instance. For type-safe access, use the generated, typed pointer _ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer