Use CMR10 metrics in the M1 paragraph builder

This commit is contained in:
gloamxun committed 2026-10-20 12:20:49 +08:00
1 parent e6da4d2fa7
commit bf5dae3797
5 files changed
+150 -8

No files matched your search

+6 -1
View File
@@ -1,6 +1,11 @@
pub mod cmr10;
pub mod paragraph;
pub use paragraph::{HorizontalBox, HorizontalItem, Paragraph, ParagraphStyle, layout_paragraph};
pub use cmr10::Cmr10Metrics;
pub use paragraph::{
HorizontalBox, HorizontalItem, Paragraph, ParagraphStyle, layout_items, layout_paragraph,
layout_paragraph_with_font, text_items, text_items_with_font,
};
use std::collections::hash_map::DefaultHasher;
use std::hash::{Hash, Hasher};