Skip to content

Commit

Permalink
Allow empty design space in ift_extend.
Browse files Browse the repository at this point in the history
  • Loading branch information
garretrieger committed Jan 11, 2025
1 parent acbe620 commit 0449c58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions incremental-font-transfer/src/bin/ift_extend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ fn main() {

fn parse_unicodes(args: Vec<String>, codepoints: &mut IntSet<u32>) -> Result<(), ParsingError> {
for unicode_string in args {
if unicode_string == "" {
continue;
}

if unicode_string == "*" {
let all = IntSet::<u32>::all();
codepoints.union(&all);
Expand Down Expand Up @@ -137,6 +141,10 @@ fn parse_design_space(args: Vec<String>) -> Result<DesignSpace, ParsingError> {

let mut result = HashMap::<Tag, RangeSet<Fixed>>::default();
for arg in args {
if arg == "" {
continue;
}

if arg == "*" {
return Ok(DesignSpace::All);
}
Expand Down

0 comments on commit 0449c58

Please sign in to comment.