Skip to main content

ferroui_base/media/
font_fallback.rs

1use crate::media::{FontFamily, UnicodeRange};
2
3/// Font fallback definition that is used to override the default fallback
4/// lookup of the current font manager implementation.
5#[derive(Clone, Debug, PartialEq)]
6pub struct FontFallback {
7    /// Get or set the fallback `FontFamily`.
8    pub font_family: FontFamily,
9    /// Get or set the `UnicodeRange` that is covered by the fallback.
10    pub unicode_range: UnicodeRange,
11}
12
13impl Default for FontFallback {
14    fn default() -> Self {
15        Self { font_family: FontFamily::default_family(), unicode_range: UnicodeRange::default_range() }
16    }
17}