Add 10/11/12pt base font size options

This commit is contained in:
gloamxun committed 2026-10-19 13:52:24 +08:00
1 parent 269433abdb
commit 477e2124c8
8 files changed
+180 -69

No files matched your search

+3
View File
@@ -68,6 +68,8 @@ pub struct DocumentModel {
pub date: String,
pub page: PageSize,
pub parindent: common::Scaled,
/// Base font size selected by the document class (10, 11, or 12pt).
pub base_font_size: u8,
pub margins: PageMargins,
pub show_title: bool,
pub blocks: Vec<Block>,
@@ -88,6 +90,7 @@ impl Default for DocumentModel {
page: PageSize::default(),
// article's default \parindent for 10/11pt text.
parindent: common::Scaled(17 * 65_536),
base_font_size: 11,
margins: PageMargins::default(),
show_title: false,
blocks: Vec::new(),