Bug 138277 - Typo Ascender / Win Ascent / font Metrics
Summary: Typo Ascender / Win Ascent / font Metrics
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Rendering
  Show dependency treegraph
 
Reported: 2020-11-17 07:05 UTC by Ashwini
Modified: 2022-02-17 08:26 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Diacritics above a character are chopped off - Typo Ascender / Font Metrics (64.82 KB, image/jpeg)
2020-11-17 07:11 UTC, Ashwini
Details
diacritics above a character are chopped off - Type Ascender / Font Metrics (12.77 KB, application/vnd.oasis.opendocument.text)
2020-11-17 07:13 UTC, Ashwini
Details
Diacritics above a character are chopped off - Typo Ascender / Font Metrics (41.51 KB, application/pdf)
2020-11-17 07:15 UTC, Ashwini
Details
screenshot (174.18 KB, image/png)
2020-11-20 17:47 UTC, Julien Nabet
Details
Screenshot with 7.0.2 on Windows 10 (58.88 KB, image/png)
2020-11-21 12:24 UTC, Ming Hua
Details
Version 7.0.3.1 has serious drawbacks compared to 6.4.7.2 (60.76 KB, image/jpeg)
2020-12-11 04:51 UTC, Ashwini
Details
geometric shape dotted circle shows up on inserting special characters (10.81 KB, application/vnd.oasis.opendocument.text)
2020-12-11 05:39 UTC, Ashwini
Details
geometric shape dotted circle shows up on inserting special characters (16.09 KB, application/vnd.oasis.opendocument.text)
2022-02-17 08:04 UTC, Ashwini
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ashwini 2020-11-17 07:05:29 UTC
Description:
When we open a file in LibreOffice Writer 6.4.7.2, it uses the "Win Ascent" parameter of a font, rather than "Typo Ascender". This chops off diacritics in our font. Sanskrit2020.otf
https://sourceforge.net/projects/advaita-sharada-font/files/Devanagari/

When we export as pdf, it saves correctly, the diacritics are visible.
See also  "Activity log for bug 55469: Different line spacing across platforms".

This issue is not present in Microsoft Word 2019. Using "Add space before paragraph" the text with diacritics is clearly rendered.

Steps to Reproduce:
1.select font Sanskrit2020
2.insert unicode character $0905 
3.insert unicode character $A8E2

Actual Results:
character $A8E2 is chopped off as seen in attached jpg.

Expected Results:
character $A8E2 should be clearly visible, as seen in attached pdf.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
The character $A8E2 should be clearly visible above the character $0905.
Comment 1 Ashwini 2020-11-17 07:11:09 UTC
Created attachment 167350 [details]
Diacritics above a character are chopped off - Typo Ascender / Font Metrics
Comment 2 Ashwini 2020-11-17 07:13:13 UTC
Created attachment 167351 [details]
diacritics above a character are chopped off - Type Ascender / Font Metrics
Comment 3 Ashwini 2020-11-17 07:15:01 UTC
Created attachment 167352 [details]
Diacritics above a character are chopped off - Typo Ascender / Font Metrics
Comment 4 Julien Nabet 2020-11-19 20:01:06 UTC
Would it be possible you attach the font here?
Indeed, it doesn't download with or without using direct link or other mirrors.
Comment 5 Julien Nabet 2020-11-20 17:47:54 UTC
Created attachment 167426 [details]
screenshot

I gave a try with LO Debian package 7.0.3 with gen rendering (to be nearer of Windows), I don't reproduce this.

Perhaps it can be reproduced only on Windows?
Could you give a try to 7.0.3?
Comment 6 Ashwini 2020-11-21 04:28:18 UTC
Ok great. That means LibreOffice for Windows needs to be improved. 

Please note that when we export to pdf, it prints correctly in pdf. But in LibreOffice Writer the diacritics are chopped off. Please also see that such a bug has been reported earlier and is unresolved.

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

I cannot confirm Debian right now, will need to find a computer to install that.
Comment 7 Julien Nabet 2020-11-21 09:00:26 UTC
(In reply to Ashwini from comment #6)
> Ok great. That means LibreOffice for Windows needs to be improved. 
> ...
Could you give a try 7.0.3 on Windows? I mean, perhaps it's already fixed?
Comment 8 Ming Hua 2020-11-21 12:24:23 UTC
Created attachment 167451 [details]
Screenshot with 7.0.2 on Windows 10

(In reply to Julien Nabet from comment #5)
> I gave a try with LO Debian package 7.0.3 with gen rendering (to be nearer
> of Windows), I don't reproduce this.
I also had problem downloading the font, and couldn't test until now.

I can reproduce with 6.4.7 on Windows 10, but with 7.0.2 it seems to have been fixed.  See attached screenshot.

Version: 7.0.2.2 (x64)
Build ID: 8349ace3c3162073abd90d81fd06dcfb6b36b994
CPU threads: 2; OS: Windows 10.0 Build 18363; UI render: Skia/Raster; VCL: win
Locale: zh-CN (zh_CN); 界面: zh-CN
Calc: threaded

So @Ashwini please indeed test 7.0.3 on your Windows system.
Comment 9 Ashwini 2020-12-11 04:34:33 UTC
We finally got a pc to install LibreOffice 7.0.3.1

Our Observations.
1. The Typo Ascender is fixed, and the diacritics are no longer chopped off.

However
2. The geometric shape dotted circle keeps showing up. That means the diacritic no longer attaches to the base glyph when we do
a) Insert Special Character.
b) For a few special characters that are directly present on the standard keyboard, the diacritic attaches to the base glyph.

3. In 6.4.7.2 the geometric shape is not shown, and the diacritic attaches to the base glyph, with chopped character.

4. Please give a good thought to it as this is not a fix at all.

5. Language SA Sanskrit(India).
Comment 10 Ashwini 2020-12-11 04:51:06 UTC
Created attachment 168039 [details]
Version 7.0.3.1 has serious drawbacks compared to 6.4.7.2

We finally got a pc to install LibreOffice 7.0.3.1

Our Observations
1. Typo Ascender is fixed, and the diacritics are no longer chopped off.

However
2. The diacritic no longer attaches to the base glyph. The geometric shape dotted circle is always seen.

3. For some diacritics already present on the keyboard, it attaches, but most of our diacritics are typed using INSERT SPECIAL Character, and then it does not attach at all. This means we can no longer use LibreOffice 7.0.3.1 to type Sanskrit documents. (Version 6.4.7.2 is still being used to type Sanskrit for documents where certain diacritics are not needed).

4. Language SA Sanskrit(India).
Comment 11 Ming Hua 2020-12-11 05:08:02 UTC
(In reply to Ashwini from comment #10)
> Created attachment 168039 [details]
> Version 7.0.3.1 has serious drawbacks compared to 6.4.7.2
Again, please provide sample document in addition to screenshot if you want QA people who don't use Sanskrit to help you on this bug.

As you can see, my screenshot with 7.0.2 has none of the problems you mentioned.
Comment 12 Ashwini 2020-12-11 05:39:38 UTC
Created attachment 168040 [details]
geometric shape dotted circle shows up on inserting special characters

Attached Sample Document.
Thank You.
Comment 13 QA Administrators 2020-12-12 03:49:55 UTC Comment hidden (obsolete)
Comment 14 Ming Hua 2020-12-12 04:15:55 UTC
(In reply to Ashwini from comment #12)
> Created attachment 168040 [details]
> geometric shape dotted circle shows up on inserting special characters
Yes, I can confirm that when opened in 7.0.4 RC1 the diacritic marks are separated, with the dotted circle, instead on the glyph it's supposed to attach to.

However, when opened in 6.4.7, it's exactly the same.

So to me, who has no experience on Sanskrit in particular or any CTL language in general (so take my opinion for whatever it's worth), this looks like an issue about how LO handles the input of Sanskrit characters, instead of the original issue about font rendering.  This issue also doesn't seem to have anything to do with font metrics.

My suggestion, therefore, is reporting the new issue as a new bug, and provide detailed steps to reproduce (preferrably steps can be done on systems without Sanskrit support installed).  Meanwhile this bug can be resolved as WORKSFORME as it's fixed in 7.0.3.
Comment 15 Ashwini 2020-12-12 04:50:48 UTC
You say that in your system, diacritics do not attach in 7.0.3 and neither in 6.4.7? Please confirm.

At our end 6.4.7 is being used to write Sanskrit and works fine because the diacritics get attached.
Comment 16 Ming Hua 2020-12-12 05:22:19 UTC
(In reply to Ashwini from comment #15)
> You say that in your system, diacritics do not attach in 7.0.3 and neither
> in 6.4.7? Please confirm.
Well, I said *when attachment 168040 [details] is opened in 6.4.7* on my system, diacritics are not attached.

I don't have any way to input Sanskrit from keyboard on my system.
Comment 17 Ashwini 2020-12-12 05:34:08 UTC
OK. Thank You.

Please feel free to use the IME Sanskrit keyboard from
https://sourceforge.net/projects/advaita-sharada-font/files/Devanagari/
Comment 18 LibreTraining 2021-02-25 02:32:30 UTC
Just downloaded the Sanskrit2020.otf font from SourceForge.
The "Use Typo Metrics" setting in the font is Off.
So on Windows it would be using the WinAscent setting.
But that does not really matter because you have both Typo Ascender and Win Ascent set to the same setting, 2200.
And 2200 runs right through the middle of $a8e2.
So what we see is to be expected with those settings in the font.

Regarding the diacritic display issues, I had no problem entering the characters using Unicode and they displayed as expected.
That issue may be with the keyboard.
Comment 19 Dieter 2022-02-16 16:04:29 UTC
Hello Ashwini, a new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.

Could you please also consider comment 18? Thank you.

=> NEEDINFO
Comment 20 Ashwini 2022-02-17 08:04:41 UTC
Created attachment 178339 [details]
geometric shape dotted circle shows up on inserting special characters
Comment 21 Ashwini 2022-02-17 08:16:18 UTC
Hello Dieter,

Many Thanks for your mail regarding new version of Libre Office.

We downloaded the latest version Libre Office 7.3.3,
The bug 138277 [Diacritics above a character are chopped off - Typo Ascender / Font Metrics]  is resolved. Thank You very much for the hard work.
------------------------------
The bug 138277 [geometric shape dotted circle shows up on inserting special characters] remains unresolved.
When the diacritic Mark is already present on keyboard, then it attaches correctly to the Base Glyph. However, if we do INSERT - SPECIAL CHARACTER, then it does not attach to the Base Glyph. This bug persists. Please see attached.

Note: Libre Office Version 6.4.7.2 works fine and diacritics gets correctly attached on Inserting Special Characters. (However we are unable to use Version 6.4.7.2 since the Diacritics above a character are chopped off. That has been resolved in Version 7.3.3).
------------------------------
So if somehow you could see 6.4.7.2 and update that in 7.3.3, then perhaps both bugs can be resolved. Thank You.
Comment 22 Dieter 2022-02-17 08:26:39 UTC
(In reply to Ashwini from comment #21)
> We downloaded the latest version Libre Office 7.3.3,
> The bug 138277 [Diacritics above a character are chopped off - Typo Ascender
> / Font Metrics]  is resolved. Thank You very much for the hard work.

Thank you for retesting
=> RESOLVED WORKSFORME