Bug 114791

Summary: Windows-Font "Tahoma" as menu font has wrong kerning in Libreoffice (hinting issue see comment 9)
Product: LibreOffice Reporter: andreas.franz
Component: UIAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: libretraining.tutorials, telesto, vsfoote
Priority: medium    
Version: 5.3.7.2 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=88991
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 71732    
Attachments: Menu with SegUI-Standard-font
Menu with Tahoma-font
Open menu with Tahoma
Different fonts with 9px
Different fonts with 10px

Description andreas.franz 2018-01-01 11:20:00 UTC
Description:
If changed my system-menu-font in Windows 10 to "Tahoma". This font makes wrong font-kerning in all Libreoffice-application.
Latest working Version was 5.2.7. Now I´m on 5.3.7.2

Steps to Reproduce:
1. change your system-menu-font to Tahoma 
2. start Libreoffice eg. Writer


Actual Results:  
wrong font-kerning 

Expected Results:
same look as 5.2.7


Reproducible: Always


User Profile Reset: Yes



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0
Comment 1 andreas.franz 2018-01-01 11:22:08 UTC
Created attachment 138785 [details]
Menu with SegUI-Standard-font
Comment 2 andreas.franz 2018-01-01 11:24:31 UTC
Created attachment 138786 [details]
Menu with Tahoma-font
Comment 3 andreas.franz 2018-01-01 11:26:23 UTC
Created attachment 138787 [details]
Open menu with Tahoma
Comment 4 andreas.franz 2018-01-01 11:32:25 UTC
First sentence should be:
I´ve changed my system-menu-font to "Tahoma" ...
Comment 5 V Stuart Foote 2018-01-01 20:01:02 UTC
Hmm, changing Windows 10 system font requires a registry modification [1] so not a common practice; however the issue can be visualized using LO's font replacement table mechanism: Tools -> Options -> Fonts: "Apply replacement table" checkbox and setting Tahoma as a replacement (Always) for Segoe UI.

IHMO believe the issue is with Tahoma's font metrics, for example doing the same with Arial, or Source Sans, or Noto Sans is clean. Lucida Sans shows some horizontal compression--but not as noticeable as Tahoma--to me this is a bad font metrics issue and Not Our Bug (NOB).

Khaled?

=-ref-=
https://www.windowscentral.com/how-change-default-system-font-windows-10
Comment 6 andreas.franz 2018-01-02 14:32:58 UTC
Created attachment 138806 [details]
Different fonts with 9px
Comment 7 andreas.franz 2018-01-02 14:33:18 UTC
Created attachment 138807 [details]
Different fonts with 10px
Comment 8 andreas.franz 2018-01-02 14:37:22 UTC
It seems, that Tahoma in Libreoffice looks ugly, when it´s size is 9px. If you switch to 10px, it looks normal. Maybe a rounding issue?

System-Font-changing is not a big thing - Windows 7 has preferences for that task,
in Windows 10 you can use this simple tool:

https://www.wintools.info/index.php/advanced-system-font-changer-font-settings

regards,

Andy
Comment 9 ⁨خالد حسني⁩ 2018-01-03 04:57:11 UTC
Tahoma is an old font designed for aliased rendering, so it probably does strong hinting that affects glyph advance width, but we always use the unhinted glyph advances.

We probably need away to tell if we are rendering text for UI or content and use hinted or unhinted advances accordingly (for content we always want to use unhinted advances so that document does not reflow based on hinting settings or screen resolution). I don’t know how easy to do this, though.
Comment 10 QA Administrators 2019-01-04 03:39:52 UTC Comment hidden (obsolete)
Comment 11 QA Administrators 2021-01-04 04:05:27 UTC Comment hidden (obsolete)
Comment 12 andreas.franz 2021-01-04 12:10:56 UTC
Bug still exists (by design?).

Version: 7.0.4.2 (x64)
Build ID: dcf040e67528d9187c66b2379df5ea4407429775
CPU threads: 4; OS: Windows 10.0 Build 19042; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE
Calc: threaded

regards, Andy