Function font_kit::matching::find_best_match
source · pub fn find_best_match(
candidates: &[Properties],
query: &Properties,
) -> Result<usize, SelectionError>
Expand description
This follows CSS Fonts Level 3 § 5.2 [1].
https://drafts.csswg.org/css-fonts-3/#font-style-matching