mirror of
https://github.com/typst/typst
synced 2025-08-15 23:48:32 +08:00
Don't clone in display_font
This commit is contained in:
parent
8d58e747c8
commit
d2b2a6fa8d
@ -96,9 +96,8 @@ impl AbsExt for Abs {
|
||||
}
|
||||
|
||||
/// Display the font family of a font.
|
||||
pub(crate) fn display_font(font: &Font) -> String {
|
||||
let font_family = &font.info().family;
|
||||
font_family.to_string()
|
||||
pub(crate) fn display_font(font: &Font) -> &str {
|
||||
&font.info().family
|
||||
}
|
||||
|
||||
/// Convert a typst path to a krilla path.
|
||||
|
Loading…
x
Reference in New Issue
Block a user