You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 !
The text was updated successfully, but these errors were encountered:
quentin-ineat-ca
changed the title
Size is not working in "empty" TextRun
Custom size is not applied in "empty" TextRun
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 !
The text was updated successfully, but these errors were encountered: