Bug 97261 - Colored font char, alignment changes depending on zoom level
Summary: Colored font char, alignment changes depending on zoom level
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.0.4.2 release
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Font-Rendering Kerning
  Show dependency treegraph
 
Reported: 2016-01-19 21:34 UTC by enrico.dellaquila
Modified: 2023-10-18 14:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
font files and document to reproduce the problem, plus some export/screenshot (163.23 KB, application/zip)
2016-01-19 21:34 UTC, enrico.dellaquila
Details
screen dump of the same problem, in LO 5.1 (203.49 KB, image/png)
2016-01-25 23:09 UTC, enrico.dellaquila
Details
same in 5.1.0.3 (8.74 KB, image/png)
2016-02-16 22:42 UTC, enrico.dellaquila
Details
also in linux+LO 4.2.8.2 (18.67 KB, image/png)
2016-03-29 22:45 UTC, enrico.dellaquila
Details
display pre cut&paste (20.11 KB, image/png)
2016-04-30 21:42 UTC, enrico.dellaquila
Details
display post cut&paste (and no formatting) (20.15 KB, image/png)
2016-04-30 21:44 UTC, enrico.dellaquila
Details
Colored diagram made with anothe editor (Apple Pages) (341.59 KB, image/png)
2016-05-21 07:08 UTC, enrico.dellaquila
Details
Bug screenshot also in LO version 7.0.1 (153.07 KB, image/png)
2020-09-29 22:00 UTC, enrico.dellaquila
Details

Note You need to log in before you can comment on or make changes to this bug.
Description enrico.dellaquila 2016-01-19 21:34:39 UTC
Created attachment 122093 [details]
font files and document to reproduce the problem, plus some export/screenshot

I'm using a custom font for writing guitar fretboard diagrams, that has vertical lines that align vertically.
The font (fixed size) redefines the chars on the keyboard with shapes (circles, squares, etc...)
When the font color is changed the alignment gets slighlty offset.
Everything is ok if the color is not used.
This problem doesn't happen with other editor (e.g. TextEdit in OSX) 
LibreOffice 5.0.4.2
OSX 10.11.2

Files attached (zip file):
- Font file (Ted-Chemist-regular.odt)
- odt example document (disallinea.odt)
- PDF export from LibreOffice (disallinea.pdf)
- PDF export from TextEdit (disallinea_textedit.pdf)
- Screenshot of the editor window (disallinea.png) with the issue highlighted
Comment 1 enrico.dellaquila 2016-01-20 15:39:33 UTC
In LO 5.0.4/Win10 the problem doesn't seem to appear.
It seems an OSX version issue.
Comment 3 enrico.dellaquila 2016-01-25 23:09:26 UTC
Created attachment 122208 [details]
screen dump of the same problem, in LO 5.1
Comment 4 enrico.dellaquila 2016-01-25 23:10:13 UTC
(In reply to Beluga from comment #2)
> Is the problem also in 5.1?
> https://wiki.documentfoundation.org/Installing_in_parallel/OS_X
> http://www.libreoffice.org/download/pre-releases/

so it seems..
See the new screen dup I attached.
Comment 5 enrico.dellaquila 2016-02-16 22:42:37 UTC
Created attachment 122701 [details]
same in 5.1.0.3

screen dump using the last LO 5.1.0.3, just installed...
see the right border of the diagram, in the row containing the orange '1'
The problem arised just after changing the char color.
There are many similar problems when zooming in and out the page, but after a page scroll it returns normal.
This one, related to font color seems consistently present...
Comment 6 enrico.dellaquila 2016-03-29 22:45:36 UTC
Created attachment 123938 [details]
also in linux+LO 4.2.8.2

another user sent me this screenshot, linux (don't know which version) and LO 4.2.8.2
the problem persists...
Comment 7 enrico.dellaquila 2016-04-30 21:42:05 UTC
Created attachment 124755 [details]
display pre cut&paste

in pre.png you can see the alignment problem, this time happening also without coloring the fonts.
Comment 8 enrico.dellaquila 2016-04-30 21:44:24 UTC
Created attachment 124756 [details]
display post cut&paste (and no formatting)

in post.png you see the same page after cutting the problem section, and then pasting but without formatting (paste special/not formatted text)
Comment 9 enrico.dellaquila 2016-04-30 21:47:11 UTC
LibreOffice 5.1.2.2:
The problem remains. But I noticed that after cutting and pasting without formatting, the char alignment problem disappears.
Seems something has been reset.
See pre.png and post.png attachments to see the difference
Comment 10 enrico.dellaquila 2016-05-21 07:08:33 UTC
Created attachment 125207 [details]
Colored diagram made with anothe editor (Apple Pages)

Apple Pages seems not having any problem with colored characters, so seems quite evident that the problem is not the font, but LibreOffice rendering.
Comment 11 Buovjaga 2016-05-22 14:33:49 UTC
Confirmed. Adjusted summary to clarify it is about the zoom level.

Version: 5.1.2.2
Build ID: d3bf12ecb743fc0d20e0be0c58ca359301eb705f
CPU Threads: 4; OS Version: Mac OS X 10.11.4; UI Render: default; 
Locale: en-US (en.UTF-8)
Comment 12 QA Administrators 2017-09-01 11:18:31 UTC Comment hidden (obsolete)
Comment 13 enrico.dellaquila 2017-09-03 00:22:00 UTC
Seems that the font I used (and attached to this thread) is no more supported, after version 5.3.
Latest version supporting the font was 5.2.7.2, and the bug is still present.
After that, the font (that version) is no more supported.
Since it's a custom-made font, I'll try to re-generate one that is detected by the newer LO versions.
Comment 14 Buovjaga 2017-09-03 13:13:30 UTC
(In reply to enrico.dellaquila from comment #13)
> Seems that the font I used (and attached to this thread) is no more
> supported, after version 5.3.
> Latest version supporting the font was 5.2.7.2, and the bug is still present.
> After that, the font (that version) is no more supported.
> Since it's a custom-made font, I'll try to re-generate one that is detected
> by the newer LO versions.

The font layout engine is now HarfBuzz. Check that the metrics of your font are correct.
Comment 15 QA Administrators 2018-09-04 02:54:29 UTC Comment hidden (obsolete)
Comment 16 QA Administrators 2020-09-04 04:03:37 UTC Comment hidden (obsolete)
Comment 17 enrico.dellaquila 2020-09-29 22:00:12 UTC
Created attachment 165959 [details]
Bug screenshot also in LO version 7.0.1
Comment 18 enrico.dellaquila 2020-09-29 22:04:26 UTC
just downloaded the latest version 7.0.1, on macOS 10.15.6 (catalina), and
the bug is still present.
I attached a screenshot, you can see the misalignment in correspondence of the orange dots.
Comment 19 Stéphane Guillou (stragu) 2023-10-18 14:29:19 UTC
Please test in version 7.4, I see the issue is now fixed.

Reproduced with attachment 122093 [details] in:

Version: 7.3.7.2 / LibreOffice Community
Build ID: e114eadc50a9ff8d8c8a0567d6da8f454beeb84f
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

Not reproduced in:

Version: 7.4.7.2 / LibreOffice Community
Build ID: 723314e595e8007d3cf785c16538505a1c878ca5
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded