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
1 year, 7 months ago
1 year, 7 months ago
No labels applied.

~ireas 1 year, 7 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 1 year, 7 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 1 year, 7 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.