File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments