Created attachment 88249 [details] print view where devanagari short 'i' vowel is rendered incorrectly by several fonts (not the first one) I'm assuming this is a libreoffice (or one of its dependencies) bug since the devanagari short 'i' vowel renders correctly in gedit in the fonts which cause libreoffice trouble. I'm attaching a screenshot to demonstrate the problem. In the print view, the short 'i' vowel of several of my devanagari fonts is pushed to the left, practically merging into the character that comes before it. See "devanagari_i_print.png" (the correctly rendered font at the top, Sanskrit 2003, is there just to show that the problem doesn't affect all devanagari fonts). This is not just a display issue, as the pdf of this doc will also show the same problem. On the other hand, if the same doc is switched to web view, the problem goes away and all my devanagari fonts are rendered correctly. I've tried tweaking (turning off) various autocorrect options, but haven't been able to correct the issue. I'm on an up-to-date version of (Arch linux-based) Manjaro.
Can you attach the document used in the screenshot?
Created attachment 88322 [details] .odt file to go with the .png submitted previously I'd already deleted the file for the .png I uploaded, so I created another which shows the same problem. I added the download sites for a devanagari font which works correctly (the first one, Sanskrit 2003) and one which doesn't (the last one, Uttara). Thanks for looking into this!
OK, I can reproduce the issue with Siddhanta and Uttara (no access to the other broken fonts), and interestingly using HarfBuzz directly does not show this issue, so looks like a LibreOffice-specific bug.
It is half a font bug, half a LobreOffice bugs. In the broken fonts the devanagari short 'i' glyphs has mark glyph class though they are spacing marks so IMO should not have this glyph class, and we use this glyph class to signal glyphs whose advance width should be ignored (essentially second guessing the layout engine, which why I consider it a LibreOffice bug). I pushed a bandaid that fixes this issue to master.
Khaled Hosny committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=71077148d442b3bbfeefd9a572942946c6a95823 fdo#70968: Incorrect rendering of Devanagari short 'i' vowel The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 69310 has been marked as a duplicate of this bug. ***
*** Bug 70840 has been marked as a duplicate of this bug. ***
*** Bug 71080 has been marked as a duplicate of this bug. ***
(In reply to comment #4) > It is half a font bug, half a LobreOffice bugs. In the broken fonts the > devanagari short 'i' glyphs has mark glyph class though they are spacing > marks so IMO should not have this glyph class, and we use this glyph class > to signal glyphs whose advance width should be ignored (essentially second > guessing the layout engine, which why I consider it a LibreOffice bug). First of all thanks for fixing this issue. This was the only issue pending for Lohit2 Beta release of lohit-devanagari. I tried changing class of first-i matra to base glyph and it did worked with Libreoffice but it resulted in breaking my other lookup where this glyph needed as a mark. Example: u0930 u094d u0915 u093f (र्कि) ivowelsigndeva kadeva rphfdeva -> ivowelsigndeva_rphfdeva kadeva Specifically in above lookup we have to ignore Base glyph (kadeva) to get proper conjunct of "ivowelsigndeva rphfdeva" https://raw.github.com/pravins/lohit/master/devanagari/Lohit-Devanagari.sfd Might be you can crosscheck your fix with lohit once else i will definitely test this tomorrow.
Changing the glyph class will not be needed after applying this fix, and the new Lohit Devanagari seems to work fine too.
Khaled Hosny committed a patch related to this issue. It has been pushed to "libreoffice-4-1": http://cgit.freedesktop.org/libreoffice/core/commit/?id=bb624ea64b13250573016bad7d02395556e80458&h=libreoffice-4-1 fdo#70968: Incorrect rendering of Devanagari short 'i' vowel It will be available in LibreOffice 4.1.4. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Created attachment 88469 [details] bug comparison 4.1.2.3 vs 4.2 alpha fixed thanks.
(In reply to comment #7) > *** Bug 70840 has been marked as a duplicate of this bug. *** Hi -- I guess the bug is a generic bug in case of spacing vowel signs in Indic -- which is why my bug on Tamil was dupped to this. I am changing the summary of the bug accordingly for future reference. BTW I tried to install the 4.1 devel DEBs but there are no Linux builds under http://dev-builds.libreoffice.org/daily/libreoffice-4-1/ and so I went to the 4.2 alpha builds from http://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@46-TDF/current/. I found that the Debian packaging is quite messed up so apt could not resolve the dependencies. Apparently Asif did not have any problem with the RPMs. I hope somebody fixes the Debian packaging before 4.2 is released.
(In reply to comment #13) > (In reply to comment #7) > > *** Bug 70840 has been marked as a duplicate of this bug. *** > > Hi -- I guess the bug is a generic bug in case of spacing vowel signs in > Indic -- which is why my bug on Tamil was dupped to this. I am changing the > summary of the bug accordingly for future reference. Yes. The issue is not even Indic specific, it can happen in any script where HarfBuzz zeros mark width based on Unicode not GDEF glyph classes. > BTW I tried to install the 4.1 devel DEBs but there are no Linux builds > under http://dev-builds.libreoffice.org/daily/libreoffice-4-1/ and so I went > to the 4.2 alpha builds from > http://dev-builds.libreoffice.org/daily/master/Linux-rpm_deb-x86_64@46-TDF/ > current/. I found that the Debian packaging is quite messed up so apt could > not resolve the dependencies. Apparently Asif did not have any problem with > the RPMs. I hope somebody fixes the Debian packaging before 4.2 is released. I never had much sucess with those DEB packages and I always use self-built binaries, but you may want to report this separately (or wait for the next 4.1 release).
*** Bug 71914 has been marked as a duplicate of this bug. ***