We used Rust to replace font handling that was implemented in C in Prince¹ (which is mostly written in Mercury). This was then extended to include all font shaping and released as Allsorts². We integrate the Mercury code with Rust via FFI/Rust’s C interop.