Skip to content

Commit

Permalink
Only list font names once
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Jun 10, 2024
1 parent 0693acf commit c2f49c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,9 @@ impl Application for App {
.families
.first()
.map_or_else(|| face.post_script_name.to_string(), |x| x.0.to_string());
font_names.push(font_name);
if !font_names.contains(&font_name) {
font_names.push(font_name);
}
}
}
font_names.sort();
Expand Down

0 comments on commit c2f49c8

Please sign in to comment.