Open laszbalo opened 9 years ago
+1 this I've been playing with PDFKit and Pdfmake. When adding text in Pdfmake, it keeps everything to the baseline but I need to control the layout and PDFKit gives me that control. Pdfmake has the ability to pass absolute co-ordinates to object, but I dont think that feature is fully implemented yet.
I was trying to use a different font face to highlight a word in a sentence, but the highligheted word did not sit on the same baseline than the rest of words of the same sentence.
Here is a demo:
And this is how the PDF renders:
I think it happens, because the for continued texts the (x,y) coordinate is calculated individually for every call of text().