oxedyne/fe2o3/fe2o3_austenite/tests/oracle/fixtures/styling_fixture.typ
1.9 KiB, 1 run
created by r1870400018:39279, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | // The oracle harness's own styling fixture -- the corpus's first root that actually carries lowerable |
| 2 | // `#set` declarations (see `lang::set::lower_root_declarations` and `lang::set::lower_set`), giving the |
| 3 | // A1 lowering work a root the oracle can see. Deliberately self-contained: no `#import` of any shared |
| 4 | // template, so it depends on nothing this crate does not own and needs no symbol-modifier patch (see |
| 5 | // `mod.rs`'s `prepare_patched_template_mirror`) to compile under typst 0.15.1. |
| 6 | // |
| 7 | // `doc`'s `heading-font` names "Libertinus Serif" -- both engines' own default face -- on purpose: the |
| 8 | // point of this fixture today is proving the lowering PATH runs end to end (the value reaches the |
| 9 | // theme, the reader does not refuse the construct), not deliberately mismatching Austenite's and |
| 10 | // Typst's output. A later A1 lane naming a real second face here is expected to move this root's |
| 11 | // baseline (see `record_and_diff`'s `ORACLE_ACCEPT` flow) -- that is this fixture's whole purpose. |
| 12 | #let doc(body, heading-font: "Libertinus Serif") = body |
| 13 | |
| 14 | #set text(size: 13pt) |
| 15 | #set par(leading: 16pt, first-line-indent: 18pt) |
| 16 | #show: doc.with(heading-font: "Libertinus Serif") |
| 17 | |
| 18 | = A Styling Fixture |
| 19 | |
| 20 | This paragraph is written long enough to wrap onto more than one line, so the lowered leading and |
| 21 | first-line indent are both visible in the rendered page rather than sitting on a single short line |
| 22 | where neither setting would show up in a raster comparison. The body text size is likewise set above |
| 23 | the engines' own default, so a regression in the size lowering shows as a visible reflow, not just a |
| 24 | number that quietly stops being read. |
| 25 | |
| 26 | #figure( |
| 27 | rect(width: 4cm, height: 3cm, fill: gray), |
| 28 | caption: [A figure, so the corpus has a landmark page for the oracle's raster sample.], |
| 29 | ) <fig-styling-fixture> |
| 30 | |
| 31 | == A Second Heading |
| 32 | |
| 33 | A second short section, so the document carries more than one heading for the anchor-page comparison |
| 34 | to order-match against. |