mirror of
https://github.com/typst/typst
synced 2025-08-15 15:38:33 +08:00
Update
This commit is contained in:
parent
067478a520
commit
0535f165f6
@ -83,7 +83,7 @@ fn build_font(typst_font: Font) -> SourceResult<krilla::text::Font> {
|
||||
let font_data: Arc<dyn AsRef<[u8]> + Send + Sync> =
|
||||
Arc::new(typst_font.data().clone());
|
||||
|
||||
match krilla::text::Font::new(font_data.into(), typst_font.index(), true) {
|
||||
match krilla::text::Font::new(font_data.into(), typst_font.index()) {
|
||||
None => {
|
||||
let font_str = display_font(&typst_font);
|
||||
bail!(Span::detached(), "failed to process font {font_str}");
|
||||
|
Loading…
x
Reference in New Issue
Block a user