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
When I convert multi-line text containing emoji from HTML to PDF with WeasyPrint 63.1 on MacOS, the emoji are not aligned vertically with the surrounding text and often collide with characters from the line above. For example, converting
Thanks for the report. I don’t get exactly the same result as you, but you’re right: removing the shift seems to improve the rendering. This value has been set in the first commit enabling emoji support in WeasyPrint without Cairo, I guess it’s safe to remove.
When I convert multi-line text containing emoji from HTML to PDF with WeasyPrint 63.1 on MacOS, the emoji are not aligned vertically with the surrounding text and often collide with characters from the line above. For example, converting
yields thanks.pdf.
![Image](https://private-user-images.githubusercontent.com/1304425/405030544-cc064f3e-dd44-4ee1-968d-21ec3e705698.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMTk0OTQsIm5iZiI6MTczOTMxOTE5NCwicGF0aCI6Ii8xMzA0NDI1LzQwNTAzMDU0NC1jYzA2NGYzZS1kZDQ0LTRlZTEtOTY4ZC0yMWVjM2U3MDU2OTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDAxMzE0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ODc5OGNhYTlkYzk5YjIzZjU0MWViNDk4OWUzZDJhODVhNmVhM2NmMDg5Y2UyZTk2N2VjMGFkZmY5NDZjNmVmOCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Q_VG9f8Mrsqkv5lsspKm7K0weDQtg3bxQBLTAocbDTM)
Is this user error? Is there any guidance on how to improve the alignment?
I've found that a slight modification to the png emoji case in
draw_first_line
gives better alignment: tagatac@c567ad2The text was updated successfully, but these errors were encountered: