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

Underline does not seem to work well #325

Open
harvey56 opened this issue Mar 20, 2024 · 0 comments
Open

Underline does not seem to work well #325

harvey56 opened this issue Mar 20, 2024 · 0 comments

Comments

@harvey56
Copy link

Underlining text does not seem to work the way it should. The following, as taken from the example :

const cell = doc.cell({ paddingBottom: 0.5 * pdf.cm });
cell.text('Features:', { fontSize: 16, font: fonts.HelveticaBold });
cell
    .text({ fontSize: 14, lineHeight: 1.35 })
    .add('-')
    .add('different', { color: 0xf8dc3f })
    .add('font', { font: fonts.TimesRoman })
    .add('styling', { underline: true })
    .add('options', { fontSize: 9 });

Does not underline the text. It draws an underline before the text.

2024-03-20_11-13

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