FontResolverFn

Type Alias FontResolverFn 

Source
pub type FontResolverFn = Arc<dyn Fn(&FontQuery) -> Option<(FontData, u32)> + Send + Sync>;
Expand description

A callback function for resolving font queries.

The first argument is the raw data, the second argument is the index in case the font is a TTC, otherwise it should be 0.

Aliased Typeยง

pub struct FontResolverFn { /* private fields */ }