get_default_fallback_fonts

Function get_default_fallback_fonts 

Source
pub fn get_default_fallback_fonts(primary_name: &str) -> Vec<String>
Expand description

Returns a list of sensible default fallback fonts for the given primary font.

These fallbacks are tried in order when characters are missing from the primary font:

  1. Unicode fonts (Noto Sans, DejaVu Sans, Arial Unicode)
  2. System fonts (SF Pro on macOS, Segoe UI on Windows)
  3. Emoji fonts for emoji support

§Arguments

  • primary_name - The primary font name (used to avoid redundant fallbacks)

§Returns

A vector of fallback font names