pub fn system_font_file(
directory: &Path,
family: &FontFamily,
weight: FontWeight,
) -> Option<PathBuf>Expand description
The file a platform backs family with at weight, if one is present.
Weight-specific static files win when the build ships them; otherwise the
family’s regular file is returned and instanced on its wght axis at
registration. weight is expected to be one the family declares — callers
on the system path run it through system_declared_weight first.