A fix for the egui backend. No API changes. Upgrade with
cargo update -p latex-rust. SVG and PNG output is unchanged from 2.0.0.
Fixed
- The egui backend renders every glyph in the bundled font. Before, formulas using
H, math italict(so\partial_t u = \Delta u),π,σ,#,$,€,\dashv,\natural, bold and blackboard-bold capitals, and about 260 other glyphs failed withError::Unsupported { what: "glyph tessellation" }.B,k,τ,↦, and about 140 other glyphs were drawn with a stray triangle outside the glyph. - Cause: the ear clipper that turns glyph outlines into triangles accepted an ear whose closing diagonal ran exactly through another outline point, which happens where points line up, such as on straight stems. Its result is now checked exactly. An outline it cannot triangulate correctly is triangulated instead by exact scanline trapezoids under the non-zero rule, the rule the SVG and PNG backends fill with. Glyphs that were already drawn correctly get the same meshes as before.
The same fix is in 1.0.5.