Use a real FontSystem in test platform

This commit is contained in:
Max Brunsfeld
2021-04-02 14:35:44 -07:00
parent dd31b870c3
commit 575f5910fa
2 changed files with 8 additions and 74 deletions
+2
View File
@@ -91,9 +91,11 @@ impl FontSystemState {
let mut font_ids = Vec::new();
for font in self.source.select_family_by_name(name)?.fonts() {
let font = font.load()?;
eprintln!("load font {:?}", font);
font_ids.push(FontId(self.fonts.len()));
self.fonts.push(font);
}
eprintln!("font ids: {:?}", font_ids);
Ok(font_ids)
}