Skip to content

Commit e199e4d

Browse files
committed
Fix comments with new font names and the used fallback
1 parent 9a60b06 commit e199e4d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/font/system.rs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,10 @@ impl fmt::Debug for FontSystem {
133133
///
134134
/// * Use the system locale on `std` or `en-US` on `no_std`
135135
/// * Load system fonts
136-
/// * Use `Fira Mono` as the monospace family
137-
/// * Use `Fira Sans` as the sans-serif family
136+
/// * Use `Noto Sans Mono` as the monospace family
137+
/// * Use `Open Sans` as the sans-serif family
138138
/// * Use `DejaVu Serif` as the serif family
139+
/// * Use a platform-specific font fallback
139140
///
140141
/// # Timing
141142
///
@@ -300,11 +301,17 @@ impl FontSystemBuilder {
300301
self
301302
}
302303

304+
/// Sets the font fallback implementation
305+
///
306+
/// Default: [PlatformFallback]
303307
pub fn dyn_fallback(mut self, fallback: Option<Box<dyn Fallback>>) -> Self {
304308
self.dyn_fallback = fallback;
305309
self
306310
}
307311

312+
/// Sets the font fallback implementation
313+
///
314+
/// Default: [PlatformFallback]
308315
pub fn fallback(self, fallback: impl Fallback + 'static) -> Self {
309316
self.dyn_fallback(Some(Box::new(fallback)))
310317
}

0 commit comments

Comments
 (0)