mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-28 21:04:47 +00:00
Accept .otf files
ttf_parser (used by rustybuzz and femtovg) supports them, and Qt supports them, too.
This commit is contained in:
parent
d5ac54a833
commit
96aeffa092
1 changed files with 4 additions and 1 deletions
|
@ -132,7 +132,10 @@ impl Document {
|
|||
let custom_fonts = foreign_imports
|
||||
.into_iter()
|
||||
.filter_map(|import| {
|
||||
if import.file.ends_with(".ttc") || import.file.ends_with(".ttf") {
|
||||
if import.file.ends_with(".ttc")
|
||||
|| import.file.ends_with(".ttf")
|
||||
|| import.file.ends_with(".otf")
|
||||
{
|
||||
Some(import.file)
|
||||
} else {
|
||||
diag.push_error(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue