Created attachment 40458 [details] Testing OTF font LibreOffice Writer (perhaps other components too) ignores OTF fonts with ligatures (technically: GSUB ccmp table). This is crucial for supporting complex scripts. Attached is a sample OTF font and an example ODT file. It should have correctly been displayed: ----------------------- AB C D BA ----------------------- but displays: ----------------------- AB AB BA BA ----------------------- Technically the font/file do test a) a simple GSUB ligature, b) a ligature with ZWJ (U+200D) unicode char.
Created attachment 40459 [details] Test file
Created attachment 40460 [details] Testing font source file
Retitling and correcting component, nothing Basic-related here as far as I can see. Petr, please fill in the platform fields. Does the same happen also in Beta 3?
AFAIK, OOo/LibO only support complex scripts through Graphite font technology: opentype fonts are only displayed/printed, but none of the substitution tables are used (when exporting to pdf, they are included as "type 1" fonts...). http://www.openoffice.org/issues/show_bug.cgi?id=16032 I think it also apply to LibO... Graphite fonts like this one http://numbertext.org/linux/ work really well, but I agree that complete opentype support is something really important.
[This is an automated message.] This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it started right out as NEW without ever being explicitly confirmed. The bug is changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases. Details on how to test the 3.5.0 beta1 can be found at: http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1 more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
reproduced on LibO 3.5.0 beta 1 on Fedora 64 bit but my be it is a Feature Request report?
Well, I think it is a feature request, too. I confirm the feature is missing on LibreOffice 3.4.5 OOO340m1 (Build:502) It would be very important in my view: more and more fonts are making full use of the ligature feature of OTF.
Created attachment 57819 [details] ZWJTestLIGA.otf, ZWJTestLIGA.sfd, zwj_liga_test.odt A ZIP file with modifications of Petr Tomasek's original attachments, but with 'liga' and 'rlig' features instead of 'ccmp'.
I have created new versions of Petr Tomasek's original test files, but with the 'liga' and 'rlig' features instead of the 'ccmp' feature. The results are somewhat puzzling: * LO 3.5.0rc3 on Windows will display correctly both Petr Tomasek's original 'ccmp' feature and my new 'liga' and 'rlig' features. However, it will NOT display the ligatures of the Gabriola font which is kinda Windows 7's OpenType features showcase font. Note that Gabriola uses 'liga' ligatures as well. ... * LO 3.5.0rc3 on Mac OS X will display correctly my new 'liga' and 'rlig' features, but NOT Petr Tomasek's original 'ccmp' features. However, it will display the ligatures of Gabriola. * LO 3.5.0rc3 on Ubuntu Linux will not display any ligatures at all, not 'liga', 'rlig', 'ccmp' or Gabriola's. Unfortunately, this is very inconsistent.
Thanks for additional testing. Alas, I have no knowledge in this area. Let ask expert. @ Caolan Please, when will have time, look at this bug or request.
Created attachment 59228 [details] experimental patch here's an experimental patch to... a) always use the icu layout engine instead of our "simple" regardless of the script b) not use our custom, and insufficient, ServerFont::GetTable which is *unable* to find the GSUB table :-), hence the fundamental problem c) bodge the icu layout engine somewhat
Created attachment 59229 [details] a pic
See https://bugs.freedesktop.org/show_bug.cgi?id=47995 (reports more general problems, but the causes are the same).
This is (mainly) a Writer issue, therefore changed 'Component' accordingly.
Comment on attachment 59228 [details] experimental patch just a demo patch, so mark it as "obsolete" in the sense that its not to be committed
Caolan McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=50d0b31d330b3eb245e96d9950328261e89e00cd Related: fdo#31821 pull tables from otf fonts as well
Created attachment 64205 [details] replacement patch without the initial ugliness
Caolan McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=938824ca84c46ca1a1b627a94d95ba8b24f26b65 Related: fdo#31821 prefer non-latn over latn, but latn over nothing
original example works in master now under Linux, other platform's milage may differ
Caolan McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=f4d20a400b5c06959fd5a362a350bb4d9a6e4bd1 Resolves: fdo#31821 use icu layout whenever possible
Caolan McNamara committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=d7e5f9b315b5cbe6195504a4bb94b99e6f1b7d99 Resolves: fdo#31821 always process ZW[N]J in the font regardless of script
Thanks for fixing this bug
*** Bug 47995 has been marked as a duplicate of this bug. ***