[][src]Trait pango::FontsetExt

pub trait FontsetExt: 'static {
    fn foreach<P: FnMut(&Fontset, &Font) -> bool>(&self, func: P);
fn get_font(&self, wc: u32) -> Option<Font>;
fn get_metrics(&self) -> Option<FontMetrics>; }

Trait containing all Fontset methods.

Implementors

FontsetSimple, Fontset

Required methods

fn foreach<P: FnMut(&Fontset, &Font) -> bool>(&self, func: P)

Iterates through all the fonts in a fontset, calling func for each one. If func returns true, that stops the iteration.

func

Callback function

data

data to pass to the callback function

fn get_font(&self, wc: u32) -> Option<Font>

Returns the font in the fontset that contains the best glyph for the Unicode character wc.

wc

a Unicode character

Returns

a Font. The caller must call g_object_unref when finished with the font.

fn get_metrics(&self) -> Option<FontMetrics>

Get overall metric information for the fonts in the fontset.

Returns

a FontMetrics object. The caller must call FontMetrics::unref when finished using the object.

Loading content...

Implementors

impl<O: IsA<Fontset>> FontsetExt for O[src]

Loading content...