diegomura / diegomura/react-pdf

Any good tricks for superscripting text characters?

Open
#1,590 6 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.