diff options
| author | Laurenz <laurmaedje@gmail.com> | 2025-02-16 14:18:39 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-16 13:18:39 +0000 |
| commit | 5fc679f3e7501ee5831f1b4b7789350f43b4c221 (patch) | |
| tree | 76f572f1976f8e808e904f465911cb5337bec69b /crates/typst-library | |
| parent | 19a12f379f11e75e0c35691e25dbc2be1f57db8c (diff) | |
Remove Linux Libertine warning (#5876)
Diffstat (limited to 'crates/typst-library')
| -rw-r--r-- | crates/typst-library/src/text/mod.rs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/crates/typst-library/src/text/mod.rs b/crates/typst-library/src/text/mod.rs index 30c2ea1d..3aac15ba 100644 --- a/crates/typst-library/src/text/mod.rs +++ b/crates/typst-library/src/text/mod.rs @@ -1380,24 +1380,7 @@ pub fn is_default_ignorable(c: char) -> bool { fn check_font_list(engine: &mut Engine, list: &Spanned<FontList>) { let book = engine.world.book(); for family in &list.v { - let found = book.contains_family(family.as_str()); - if family.as_str() == "linux libertine" { - let mut warning = warning!( - list.span, - "Typst's default font has changed from Linux Libertine to its successor Libertinus Serif"; - hint: "please set the font to `\"Libertinus Serif\"` instead" - ); - - if found { - warning.hint( - "Linux Libertine is available on your system - \ - you can ignore this warning if you are sure you want to use it", - ); - warning.hint("this warning will be removed in Typst 0.13"); - } - - engine.sink.warn(warning); - } else if !found { + if !book.contains_family(family.as_str()) { engine.sink.warn(warning!( list.span, "unknown font family: {}", |
