https://bugs.documentfoundation.org/show_bug.cgi?id=105798

--- Comment #7 from Khaled Hosny <[email protected]> ---
After some debugging, it turns out EMF+ files not only store the text but the
individual glyph width (the dreaded DX array), so after we layout the text and
try to apply the DX array we end up giving the ligature the width of its first
unligated glyph (e.g. fi gets the width of f). Previously on Linux we would sum
the widths and apply them (e.g. fi gets the width of f + the with of i) which
is still wrong, but less visibly.

Now I’m not sure what is the way forward. We need to replicate the exact layout
settings EMF+ (and thus GDI) uses for any given piece of text if we want to
apply the DX array, but it is not clear if EMF+ files carry such information.
Or ignore the DX array and risk breaking legitimate uses of it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to