Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom size is not applied in "empty" TextRun #2707

Open
quentin-ineat-ca opened this issue Jul 29, 2024 · 0 comments
Open

Custom size is not applied in "empty" TextRun #2707

quentin-ineat-ca opened this issue Jul 29, 2024 · 0 comments

Comments

@quentin-ineat-ca
Copy link

quentin-ineat-ca commented Jul 29, 2024

Hello,
Thank you for the library.

I use default style at top like :
styles: { default: { document: { run: { size: 20, }, }, }, },

I use the classical to make an empty line (I know it could be shorter but for the example).
return new Paragraph({ children: [new TextRun({ text: "" })], });
But using the following, the size is not override and staying at the default 20. If text not empty, it's working fine with the correct 40 size.
return new Paragraph({ children: [new TextRun({ text: "", size: 40 })], });

In Word, it's possible to increase the font of an empty line. Is it a bug or I do it wrong ?
Thank you !

@quentin-ineat-ca quentin-ineat-ca changed the title Size is not working in "empty" TextRun Custom size is not applied in "empty" TextRun Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant