diegomura / diegomura/react-pdf
Text style rendering inside SVG does not handle some props
- Dominant language
- TypeScript
- Stars
- 16.8k
- Forks
- 1.3k
- Avg merge
- 5h 6m
- Merged PRs (30d)
- 52
Description
**Describe the bug**
When using `Text` inside a `Svg`, some style attributes seems to be ignored.
Exemple :
- `fontSize` works fine
- `textTransform`, `letterSpacing` are ignored
**To Reproduce**
Reproduce in the REPL : https://react-pdf.org/repl?code=3187b0760ce02e00408a057025803c450298c0bc300500943807cf805030c00f0022230080b6198531165d400a02180e619da74e5403280373e31c520c01dc0108814d80110006189a0333a9d7b54c39480099400166b77ac3e63123ee6a158343848802a1852c15aa023018c00279aa04d8c3430400d86360037a60fa8940c4604001d1254002fb1178f8c1218246495003d015b073085449f1bb08d67b7ac146c42764a5a66765e554c0802140429960419656b6375396f009b855d03332b3b010037191928242c176a6c440e0c376c689d861406700013860f261e3c473640170c0bf08019b81428920005e180f801c9740007142820034cd6c80104c0c0730816e60c62984cb1587c35a1e5b8f120bf5ba30c1080844230b7600f020185c70962504c2dd44109e3018a7c304015919301c9c2729b6d800941ec0281706800310cbdcc0266a5e0a888543a0b0e56226c80000
**Expected behavior**
The text should accept every text style, or at least be documented in the https://react-pdf.org/styling page.
**Screenshots**
**Desktop (please complete the following information):**
- OS: Windows
- Browser: edge + firefox
- React-pdf version: 4.2.3
**Similar issues**
This issue might be similar to https://github.com/diegomura/react-pdf/issues/2382 but #2382 is too complex and not really reproductible.
Contributor guide
Assessment
This issue has not been assessed yet.