Trait pango::prelude::FontMapExt

source ·
pub trait FontMapExt: 'static {
    // Required methods
    fn changed(&self);
    fn create_context(&self) -> Option<Context>;
    fn family(&self, name: &str) -> Option<FontFamily>;
    fn serial(&self) -> u32;
    fn list_families(&self) -> Vec<FontFamily>;
    fn load_font(
        &self,
        context: &Context,
        desc: &FontDescription
    ) -> Option<Font>;
    fn load_fontset(
        &self,
        context: &Context,
        desc: &FontDescription,
        language: &Language
    ) -> Option<Fontset>;
}

Required Methods§

source

fn changed(&self)

source

fn create_context(&self) -> Option<Context>

source

fn family(&self, name: &str) -> Option<FontFamily>

Available on crate feature v1_46 only.
source

fn serial(&self) -> u32

source

fn list_families(&self) -> Vec<FontFamily>

source

fn load_font(&self, context: &Context, desc: &FontDescription) -> Option<Font>

source

fn load_fontset( &self, context: &Context, desc: &FontDescription, language: &Language ) -> Option<Fontset>

Implementors§