This is a rather a corner case.
I have two CJK fonts loaded, and use one for set_font, and the other for fallback fonts. The two fonts have a lot of overlapped characters. When detecting link-break in a table cell, the fragments generated will not be a single-fragment list, but a list of fragmented fragments. For example,
This is a rather a corner case. I have two CJK fonts loaded, and use one for set_font, and the other for fallback fonts. The two fonts have a lot of overlapped characters. When detecting link-break in a table cell, the fragments generated will not be a single-fragment list, but a list of fragmented fragments. For example,
So the fragments above are very easily triggering the exception in
link_break.py
:Minimal code Please include some minimal Python code reproducing your issue:
Environment Please provide the following information:
fpdf2
version used: 8e3857d46e647ab3184512938fbd08