Execute XeTeX Unicode delimiter codes and primitives

This commit is contained in:
gloamxun committed 2026-11-21 14:48:38 +08:00
1 parent dba73f1f47
commit 01b3931ae0
13 files changed
+285 -45

No files matched your search

@@ -103,9 +103,13 @@ impl Converter<'_> {
}
for size in (0..=style.size_index() as u8).rev() {
let font = self.state.math_font(size, c.family);
let Ok(id) = self.state.fonts.glyph_font(font) else {
if font == FontId::NULL {
continue;
};
}
if self.state.fonts.font(font)?.opentype().is_some() {
return Err("native OpenType delimiter requires MATH variants and assemblies".into());
}
let id = self.state.fonts.glyph_font(font)?;
let m = id.metrics();
let Ok(mut slot) = u8::try_from(c.slot) else {
continue;