mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Derive debug for FontBook
(#2173)
This commit is contained in:
parent
8b465222b2
commit
e55348dbc0
@ -8,7 +8,7 @@ use unicode_segmentation::UnicodeSegmentation;
|
|||||||
use super::{Font, FontStretch, FontStyle, FontVariant, FontWeight};
|
use super::{Font, FontStretch, FontStyle, FontVariant, FontWeight};
|
||||||
|
|
||||||
/// Metadata about a collection of fonts.
|
/// Metadata about a collection of fonts.
|
||||||
#[derive(Default, Clone, Hash)]
|
#[derive(Debug, Default, Clone, Hash)]
|
||||||
pub struct FontBook {
|
pub struct FontBook {
|
||||||
/// Maps from lowercased family names to font indices.
|
/// Maps from lowercased family names to font indices.
|
||||||
families: BTreeMap<String, Vec<usize>>,
|
families: BTreeMap<String, Vec<usize>>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user