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
Underline y-position wrong for baseline "alphabetic"
When setting the baseline to "alphabetic", underlines are drawn too far from the text
Code sample
// create a document and pipe to a blob
var doc = new PDFDocument();
var stream = doc.pipe(blobStream());
doc
.font('Times-Roman', 13)
.text(lorem, {
width: 412,
align: 'justify',
indent: 30,
columns: 2,
height: 300,
underline:true,
baseline: "alphabetic"
});
// end and display the document in the iframe to the right
doc.end();
stream.on('finish', function() {
iframe.src = stream.toBlobURL('application/pdf');
});
Your environment
pdfkit version: 0.10.0
Node version: N/A
Browser version (if applicable): N/A
Operating System: Windows 10
The text was updated successfully, but these errors were encountered:
I added a snippet to pdfkit_0,10.0.js which sorted it for my purposes (I'm not guaranteeing it for any other font, but it should get you started on a fix):
Underline y-position wrong for baseline "alphabetic"
When setting the baseline to "alphabetic", underlines are drawn too far from the text
Code sample
Your environment
The text was updated successfully, but these errors were encountered: