Function unicode_language::detect

source ·
pub fn detect<T>(codepoints: T, threshold: f64) -> Vec<Match>
where T: IntoIterator<Item = Range<Codepoint>>,
Expand description

Detects language support in a font given a list of Unicode codepoint ranges.

§Arguments

  • codepoints - An iterator of codepoint ranges. The iterator must not contain overlapping ranges and must be sorted in ascending order.
  • threshold - The minimum score a language must have to be returned as a match. Value must be between 0 and 1.

Returns a vector of language matches.