Skip to content

Commit

Permalink
fix: 修复空包问题
Browse files Browse the repository at this point in the history
  • Loading branch information
KonghaYao committed Dec 15, 2024
1 parent 831d006 commit cb2d9dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pre_subset/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<u32>>())
.collect();
ctx.name_table = name_table::analyze_name_table(&font, &mut font_file);
Expand Down

0 comments on commit cb2d9dd

Please sign in to comment.