Allocate native automatic font expansion instances

This commit is contained in:
gloamxun committed 2026-11-21 08:27:32 +08:00
1 parent 2d036b807e
commit 9b80a782cf
11 files changed
+288 -107

No files matched your search

+1 -1
View File
@@ -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());