diegomura / diegomura/react-pdf

Add CSS property writing-mode support

Open
#790 1 comment 2 reactions 0 assignees View on GitHub
new feature
Dominant language
TypeScript
Stars
16.8k
Forks
1.3k
Avg merge
5h 6m
Merged PRs (30d)
52

Description

Hello!
I'm implementing your library in a project but the CSS property `writing-mode` seems to be ignored.

Here's the applied style:
```js
style: {
transform: 'rotate(180deg) ',
textAlign: 'right',
whiteSpace: 'nowrap',
overflow: 'visible',
textOverflow: 'visible',
fontSize: '9mm',
writingMode: 'vertical-rl' // This is ignored by @react-pdf/renderer
},
```

## Expected behaviour (rendered in browser without the library):
```html

ROTATED TEXT

```
![image](https://user-images.githubusercontent.com/21955112/70701267-5c8ef400-1ccc-11ea-90b6-047413f13fc2.png)

## Actual behaviour (when generating PDF):
```html
ROTATED TEXT
```
![image](https://user-images.githubusercontent.com/21955112/70701311-74667800-1ccc-11ea-8eea-6dee20fda143.png)

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.