Specifically, I'm looking for how to implement underlining. I've tried using the text-style crate, however it doesn't render any of the effects it can provide. It provides underline and strikethrough but neither work.
text-styleonly provides types and conversions between different type systems. The rendering has to be implemented in
genpdf::render::TextSection, probably by setting the appropriate flags in
Speaking of the render module, I cannot figure out how to use it in combination with the higher-level modules provided by genpdf. Any tips?
The main point where you want to use it is the
Element::rendermethod. Maybe this section in the docs or looking at the implementation of
Elementfor e. g.