[Libreoffice-bugs] [Bug 33090] Thai text in some UI elements will be displayed overlapped on Windows Vista / Windows 7

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Feb 14 11:08:22 CET 2011


--- Comment #7 from Samphan Raruenrom <samphan at osdev.co.th> 2011-02-14 02:08:20 PST ---
Do you have any idea what's wrong?
We're looking at ImplLayoutRuns and SalLayout but there's no documentation or
comment whatsoever so we're quite lost now.

I guess this is what's going on:-
1) LibO try to display mixed Thai/English string using Latin fonts like Seqoe
    Says the string is "ทดสอบ test"
2) It found that it need to fallback to, e.g. Tahoma, for the Thai part
3) It construct 2 runs in SalLayout? One for the Thai part. Second for the
English part.
4) Things should be fine if the two runs are positioned correctly, which is the
case for the above example. That is the 2nd runs is positioned immediately
after the 1st run.  

But if we have one (or more) zero-width mark in the Thai part, the second runs
will start right there at the mark. See the next screenshots.

Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

More information about the Libreoffice-bugs mailing list