From cb2d9ddacc96f281fe50e204a74612403242e6af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E5=A4=8F=E5=B0=A7?= <3446798488@qq.com> Date: Sun, 15 Dec 2024 09:02:53 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=A9=BA=E5=8C=85?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pre_subset/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pre_subset/mod.rs b/src/pre_subset/mod.rs index d8c9bd74..64c4cd4d 100644 --- a/src/pre_subset/mod.rs +++ b/src/pre_subset/mod.rs @@ -60,6 +60,7 @@ pub fn pre_subset(ctx: &mut Context) { // let set = analyze_gsub(&font, &mut font_file); ctx.pre_subset_result = subsets .iter() + .filter(|v| v.len() > 0) .map(|v| v.iter().map(|i| i.clone()).collect::>()) .collect(); ctx.name_table = name_table::analyze_name_table(&font, &mut font_file);