Derive debug for FontBook (#2173)

This commit is contained in:
KillTheMule 2023-09-18 14:48:44 +02:00 committed by GitHub
parent 8b465222b2
commit e55348dbc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,7 @@ use unicode_segmentation::UnicodeSegmentation;
use super::{Font, FontStretch, FontStyle, FontVariant, FontWeight};
/// Metadata about a collection of fonts.
#[derive(Default, Clone, Hash)]
#[derive(Debug, Default, Clone, Hash)]
pub struct FontBook {
/// Maps from lowercased family names to font indices.
families: BTreeMap<String, Vec<usize>>,