Shape and render explicit OpenType fonts in native Unicode jobs

This commit is contained in:
gloamxun committed 2026-11-21 10:35:03 +08:00
1 parent 3caf1eced2
commit 70822cbd94
33 files changed
+1255 -80

No files matched your search

@@ -273,7 +273,7 @@ fn delimiter_variants_recipes_dimensions_and_dvi_positions_match_initex() {
x: x + p.x,
y: p.y,
}),
MathItem::Glyph { .. } | MathItem::PdfImage(_) => {
MathItem::Glyph { .. } | MathItem::PdfImage(_) | MathItem::OpenType(_) => {
panic!("legacy glyph identity in strict native math")
}
MathItem::Rule { width, height } => {
@@ -380,7 +380,8 @@ fn sized_math_families_and_live_math_parameters_match_real_initex_boxes() {
assert!(font.size_sp() != font.metrics.design_size_sp())
}
texrra_tex_core::math_engine_tex::MathItem::Glyph { .. }
| texrra_tex_core::math_engine_tex::MathItem::PdfImage(_) => {
| texrra_tex_core::math_engine_tex::MathItem::PdfImage(_)
| texrra_tex_core::math_engine_tex::MathItem::OpenType(_) => {
panic!("legacy master leaked into native math")
}
texrra_tex_core::math_engine_tex::MathItem::Rule { .. } => {}
@@ -250,7 +250,7 @@ fn math_accent_dimensions_raw_slots_and_dvi_positions_match_real_initex() {
x: x + item.x,
y: item.y,
}),
MathItem::Glyph { .. } | MathItem::PdfImage(_) => {
MathItem::Glyph { .. } | MathItem::PdfImage(_) | MathItem::OpenType(_) => {
panic!("legacy glyph identity in strict native math")
}
MathItem::Rule { width, height } => {
@@ -125,6 +125,7 @@ pub fn painted_text(items: &[texrra_tex_core::HorizontalItem]) -> String {
MathItem::Rule { .. } => {}
MathItem::Glyph { .. } => panic!("legacy font in native test material"),
MathItem::PdfImage(_) => panic!("PDF image in a DVI fixture"),
MathItem::OpenType(_) => panic!("OpenType paint in a classic DVI fixture"),
}
}
}