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
In my case cids contains [3, 49, 58, 68, 72, 73, 74, 76, 79, 81, 82, 86, 88]. So the cids[-1] is 88 which can be divided by 8 without a reminder. This causes the problems in the code after that. padded_width value will be 11, bits length is 88, and in the loop there will be an IndexError when trying to set the last bit when cid = 88.
The text was updated successfully, but these errors were encountered:
This still fails for me using the brew-installed version, v63.0
The original bug has been fixed, so your problem should be different. Could you please share an example to reproduce your bug in a new issue?
Thank you for the quick response! I've moved on from trying to use 1.4 (time constraints), but if I have time to get back to it I will open a new issue.
I'm using weasyprint version 59. I found the bug when trying to render a PDF with the PDF version 1.4. The problem is in the following code https://github.com/Kozea/WeasyPrint/blob/master/weasyprint/pdf/fonts.py#L118-L123
In my case
cids
contains[3, 49, 58, 68, 72, 73, 74, 76, 79, 81, 82, 86, 88]
. So thecids[-1]
is88
which can be divided by 8 without a reminder. This causes the problems in the code after that.padded_width
value will be11
,bits
length is 88, and in the loop there will be anIndexError
when trying to set the last bit whencid = 88
.The text was updated successfully, but these errors were encountered: