-
Notifications
You must be signed in to change notification settings - Fork 249
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Combination of set_text_shaping and offset_rendering causing error #1075
Comments
Thank you for the clear bug report @jsid72! Seems like There is some really minimal code reproducing this error: from copy import deepcopy
import uharfbuzz as hb
font = hb.Font(hb.Face(hb.Blob.from_file_path('calibri.ttf')))
deepcopy(font) |
I opened #1084 to fix this Could you please review it @andersonhc? |
@allcontributors please add @jsid72 for bug |
I've put up a pull request to add @jsid72! 🎉 |
The fix has been merged into the You can install this unreleased latest version this way, if you want to test that this fix solves your initial problem:
|
Describe the bug
Use of
set_text_shaping(True)
[needed for Arabic support] andoffset_rendering()
[used to handle page break] in combination are causing an error. If we remove one of these two from the code then things work fine.Error details
Minimal code
Environment
fpdf2
version used: 2.7.6The text was updated successfully, but these errors were encountered: