pub trait FontsetExt: 'static {
// Required methods
fn foreach<P: FnMut(&Fontset, &Font) -> bool>(&self, func: P);
fn font(&self, wc: u32) -> Option<Font>;
fn metrics(&self) -> Option<FontMetrics>;
}
Expand description
Iterates through all the fonts in a fontset, calling @func for
each one.
If @func returns true
, that stops the iteration.
Callback function
Returns the font in the fontset that contains the best
glyph for a Unicode character.
a Unicode character
a Font
Get overall metric information for the fonts in the fontset.
a FontMetrics
object