resolve_font

Function resolve_font 

Source
pub fn resolve_font(family: &str) -> Option<ResolvedFont>
Expand description

Resolve a font family name to a file path using fontconfig

Attempts resolution in the following order:

  1. Exact family name match
  2. “sans” generic family
  3. Any available font