More text effects

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.

Assigned to
3 months ago
3 months ago
No labels applied.

~ireas 3 months ago

text-style only 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 printpdf.

~qualitymix 3 months ago

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?

~ireas 3 months ago

The main point where you want to use it is the Element::render method. Maybe this section in the docs or looking at the implementation of Element for e. g. Text helps?

Register here or Log in to comment, or comment via email.