diegomura / diegomura/react-pdf
Any good tricks for superscripting text characters?
Open
bug
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
Commonly, text characters will need to be superscript. In the case of disclaimers, or symbols like the `®` registration mark. You can accomplish this with the HTML tag ``, or via CSS like so `verticalAlign: 'super'`. Neither of these are supported in React-PDF. Further reading on how this is accomplished in HTML: https://www.w3schools.com/tags/tag_sup.asp
I would like more support for CSS rules to affect superscripting text.
Here is a simple Fiddle with examples: https://jsfiddle.net/b6rq5sLc/
Superscripting, or approximating it, doesn't seem to be supported in any way.
Contributor guide
Assessment
This issue has not been assessed yet.