Bug 147798

Summary: Capital letter accent
Product: LibreOffice Reporter: Linux <mlinux254>
Component: WriterAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: aron.budea, buzea.bogdan, ilmari.lauhakangas, sdc.blanco
Priority: medium    
Version: 7.2.1.2 release   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 71732    
Attachments: Capital letter accent
Text document example

Description Linux 2022-03-06 12:02:49 UTC
Description:
The accent on the capital letter does not look right.

In some fonts, the accent on the capital letter looks correct (Liberation Sans, Liberation Serif, etc.).

In other fonts, the accent on the capital letter does not look right (DejaVuSans, DejaVuSerif, FreeSans, FreeSerif, Noto Sans, Noto Serif, Ubuntu, etc.).

Steps to Reproduce:
1. Opening LibreOffice Writer.
2. Write some capital letters.
3. Specify the accent (character 301) on capital letters.

Actual Results:
The accent is sometimes displayed incorrectly by dropping into a capital letter.

Expected Results:
It all depends on the chosen font.


Reproducible: Always


User Profile Reset: No



Additional Info:
Ubuntu 21.10 - LibreOffice 7.2.1
Comment 1 Linux 2022-03-06 12:04:48 UTC
Created attachment 178674 [details]
Capital letter accent

The picture of that looks like an accent on capital letters in the operating system Ubuntu 21.10.
Comment 2 Linux 2022-03-06 12:07:47 UTC
Created attachment 178675 [details]
Text document example

There is a table inside the text document.

The left side of the table contains fonts that do not correctly display accent on capital letters.

The right side of the table shows the fonts in which the accent on capital letters is correctly displayed.
Comment 3 Adolfo Jayme Barrientos 2022-03-14 04:35:27 UTC
Are you sure that’s the correct Unicode encoding? You seem to be using a combining character, and any misalignment is simply caused by individual fonts lacking anchors for positioning (which would make this issue “NOTOURBUG”). Still, we can improve the situation a bit by upgrading our copy of HarfBuzz.
Comment 4 Buovjaga 2022-12-20 11:31:59 UTC
No reply, so assuming this is notourbug.
Comment 5 ⁨خالد حسني⁩ 2022-12-20 18:21:38 UTC
The Unicode code points are correct, the text is using combining acute accent (U+0301) which should work. Opening the ODT content.xml, one sees things like:

<text:p text:style-name="P10">T<text:span text:style-name="T1">́</text:span>est.

So the base letter (T) and the accent are in separate spans, which is tracked in bug 61444. But I winder where these spans are coming from, seems similar to bug 113134 (though I’m sure I saw a more general bug open about this but can’t find it).