Only list font names once
This commit is contained in:
parent
0693acfdd4
commit
c2f49c8422
1 changed files with 3 additions and 1 deletions
|
|
@ -1255,7 +1255,9 @@ impl Application for App {
|
||||||
.families
|
.families
|
||||||
.first()
|
.first()
|
||||||
.map_or_else(|| face.post_script_name.to_string(), |x| x.0.to_string());
|
.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();
|
font_names.sort();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue