pdfjs icon indicating copy to clipboard operation
pdfjs copied to clipboard

Underline does not seem to work well

Open harvey56 opened this issue 3 months ago • 0 comments

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

harvey56 avatar Mar 20 '24 00:03 harvey56