~ireas/genpdf-rs#63: 
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.

Status
REPORTED
Submitter
~qualitymix
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~ireas 2 years 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 2 years 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 2 years 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.