Right now, when the main font doesn’t support certain characters, it creates a separate span for each one. This causes problems with the Arabic layout processor (and similar scripts), which needs the characters to stay together for proper rendering.
With this fix, we’ll only create a new span if the fallback font is different, allowing the layout to work correctly for complex scripts like Arabic.
Right now, when the main font doesn’t support certain characters, it creates a separate span for each one. This causes problems with the Arabic layout processor (and similar scripts), which needs the characters to stay together for proper rendering.
With this fix, we’ll only create a new span if the fallback font is different, allowing the layout to work correctly for complex scripts like Arabic.
Fixes https://github.com/DavBfr/dart_pdf/issues/1743