496 lines
18 KiB
Rust
496 lines
18 KiB
Rust
//! Native math integration: stored geometry, optical fonts, PDF/SVG parity.
|
|
use std::fs;
|
|
use std::process::Command;
|
|
use texrra_tex_core::cmr10::Cmr10Metrics;
|
|
use texrra_tex_core::math::{MathAtom, parse_math};
|
|
use texrra_tex_core::math_font::MathFontId;
|
|
use texrra_tex_core::paragraph::{HorizontalItem, InlineSegment, ParagraphFont, ParagraphStyle};
|
|
use texrra_tex_core::pdf::{PageOrigin, display_lists_to_pdf_with_cm_type1};
|
|
use texrra_tex_core::render::DisplayItem;
|
|
use texrra_tex_core::{Document, Engine, Unit, VerticalItem};
|
|
|
|
const PT: i64 = 65_536;
|
|
|
|
#[test]
|
|
fn structural_display_edits_replay_the_preceding_paragraph_dependency() {
|
|
let style = ParagraphStyle {
|
|
line_height: 12 * PT,
|
|
line_width: 200 * PT,
|
|
..ParagraphStyle::default()
|
|
};
|
|