Bug 153383

Summary: Variable Fonts: handling of named instances
Product: LibreOffice Reporter: Thomas Linard <thlinard>
Component: LibreOfficeAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: medium    
Version: 7.5.0.3 release   
Hardware: All   
OS: macOS (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Screenshot

Description Thomas Linard 2023-02-04 21:24:20 UTC
Description:
Congratulations on all the progress made in font feature support with version 7.5.

I tested a variable font (Martian Mono: https://github.com/evilmartians/mono/blob/main/fonts/variable/MartianMono%5Bwdth%2Cwght%5D.ttf) under macOS 12.6.3.

The VF has 8 named instances:
Thin
ExtraLight
Light
Regular
Medium
SemiBold
Bold
ExtraBold


Steps to Reproduce:
1. Install the font.
2. In Libre Office 7.5.0.3 > Format > Character, choose "Family: Martian Mono".
3. Open "Typeface".

Actual Results:
See the following:
Regular
SemiExpanded Regular
Thin
ExtraLight
Light
SemiBold
Bold
ExtraBold
Italic
Bold Italic

Expected Results:
Thin
ExtraLight
Light
Regular
Medium
SemiBold
Bold

(the VF doesn't have any Italic, Medium is missing, SemiExpanded Regular is not a named instance)


Reproducible: Always


User Profile Reset: Yes

Additional Info:
I also test Labrada (https://github.com/Omnibus-Type/Labrada/tree/main/fonts/variable): Medium named instance is missing.
Comment 1 Thomas Linard 2023-02-04 21:25:31 UTC
Created attachment 185123 [details]
Screenshot
Comment 2 Thomas Linard 2023-02-04 21:30:31 UTC
I forgot the last item in the "Expected Results" list:
Thin
ExtraLight
Light
Regular
Medium
SemiBold
Bold
ExtraBold
Comment 3 ⁨خالد حسني⁩ 2023-02-04 23:01:32 UTC
These are the named instances reported by CoreText (you can check with FontBook, you will see the same list of styles), so it is either a font or CoreText bug. The italic styles are synthesized by LibreOffice when missing, which is a standard behavior.

We are missing Medium though, needs investigation.
Comment 4 ⁨خالد حسني⁩ 2023-02-06 14:33:36 UTC
Does not look like a variable fonts issue, duplicate of bug 147739 actually.

*** This bug has been marked as a duplicate of bug 147739 ***
Comment 5 Thomas Linard 2023-02-14 17:20:45 UTC
Medium is available in FontBook (for Martian Mono and Labrada).