Allocate native automatic font expansion instances
This commit is contained in:
1 parent
2d036b807e
commit
9b80a782cf
11 files changed
+288
-107
No files matched your search
@@ -371,7 +371,7 @@ impl SourceMap {
|
||||
font,
|
||||
..
|
||||
} => {
|
||||
let metrics = font.metrics();
|
||||
let metrics = font.layout_metrics();
|
||||
let scale = |n: i64| -> Result<i64, String> {
|
||||
if metrics.size_sp() == 0 {
|
||||
return Err("source map glyph has zero design size".into());
|
||||
|
||||
Reference in new issue
Block a user