mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
f5e97ef1b5
commit
9c11781880
20 changed files with 25 additions and 29 deletions
|
@ -222,7 +222,7 @@ impl FontContext {
|
|||
|
||||
// If unable to create any of the specified fonts, create one from the
|
||||
// list of last resort fonts for this platform.
|
||||
if fonts.len() == 0 {
|
||||
if fonts.is_empty() {
|
||||
let mut cache_hit = false;
|
||||
for cached_font_entry in self.fallback_font_cache.iter() {
|
||||
let cached_font = cached_font_entry.font.borrow();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue