pangocairo::prelude

Trait PangoCairoFontExt

Source
pub trait PangoCairoFontExt:
    IsA<Font>
    + Sealed
    + 'static {
    // Provided method
    fn scaled_font(&self) -> Option<ScaledFont> { ... }
}
Expand description

Trait containing all Font methods.

§Implementors

Font

Provided Methods§

Source

fn scaled_font(&self) -> Option<ScaledFont>

Gets the cairo::ScaledFont used by @self. The scaled font can be referenced and kept using cairo_scaled_font_reference().

§Returns

the cairo::ScaledFont used by @self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§