Revert "Make FontSystem not self-referencing and update fontdb and rustybuzz"
This commit is contained in:
parent
b6398a2d57
commit
eca804c732
11 changed files with 179 additions and 225 deletions
|
|
@ -20,10 +20,10 @@ fn swash_image(
|
|||
context: &mut ScaleContext,
|
||||
cache_key: CacheKey,
|
||||
) -> Option<SwashImage> {
|
||||
let font = match font_system.get_font(cache_key.font_key) {
|
||||
let font = match font_system.get_font(cache_key.font_id) {
|
||||
Some(some) => some,
|
||||
None => {
|
||||
log::warn!("did not find font {:?}", cache_key.font_key.id);
|
||||
log::warn!("did not find font {:?}", cache_key.font_id);
|
||||
return None;
|
||||
}
|
||||
};
|
||||
|
|
@ -63,10 +63,10 @@ fn swash_outline_commands(
|
|||
) -> Option<Vec<swash::zeno::Command>> {
|
||||
use swash::zeno::PathData as _;
|
||||
|
||||
let font = match font_system.get_font(cache_key.font_key) {
|
||||
let font = match font_system.get_font(cache_key.font_id) {
|
||||
Some(some) => some,
|
||||
None => {
|
||||
log::warn!("did not find font {:?}", cache_key.font_key.id);
|
||||
log::warn!("did not find font {:?}", cache_key.font_id);
|
||||
return None;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue