Add inline framed fbox

This commit is contained in:
gloamxun committed 2026-10-19 13:03:05 +08:00
1 parent 32b0064e5f
commit 2552008d4b
11 files changed
+273 -28

No files matched your search

@@ -380,6 +380,7 @@ struct InlineBoxSpec {
width: Option<common::Scaled>,
align: InlineBoxAlign,
raise: common::Scaled,
frame: bool,
}
struct Parser {
@@ -693,12 +694,14 @@ impl Parser {
width,
align,
raise,
frame,
} => {
self.inline_boxes.push(InlineBoxSpec {
runs: Vec::new(),
width: *width,
align: *align,
raise: *raise,
frame: *frame,
});
}
expanded::FrontendEventKind::InlineBoxEnd => {
@@ -716,6 +719,7 @@ impl Parser {
width: spec.width,
align: spec.align,
raise: spec.raise,
frame: spec.frame,
}),
unresolved_reference: None,
bold: false,