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

            Bug ID: 167558
           Summary: Variable-weight fonts: case of Public Sans
           Product: LibreOffice
           Version: 24.2.7.2 release
          Hardware: All
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: LibreOffice
          Assignee: [email protected]
          Reporter: [email protected]

Description:
My university uses Public Sans as its standard font, so it's important to
figure out how to get it working properly in LO. It can be downloaded from
here:
https://fonts.google.com/specimen/Public+Sans
It's a variable-weight font. I installed it by unpacking the zip and
double-clicking the two variable-weight TTF files. This installs them somewhere
(not sure where; it ta) and I can see them in the GNOME 'Fonts' program.

Next I open LO and I can see 'Public Sans Thin' in my font list, but not
'Public Sans'. From what I can tell, this is because LO uses the 'nameID="1"'
from the font TTF (this can be extracted using 'ttx -t name fontfile.ttf' from
fonttools). From what I can tell, LO should be using 'nameID="16"' instead for
variable-weight fonts.

I've got no clear way to get the correct behaviour in LO with this font.

BTW see here for more context on this font:
https://matthewbutterick.com/chron/the-curious-case-of-public-sans.html


Steps to Reproduce:
As above.

Actual Results:
PPTX with 'Public Sans' and 'Public Sans Light' don't render correctly.
The installed font shows up in LO as 'Public Sans Thin' (corresponds to
nameID="1" in the ttx name list).

Expected Results:
The installed Public Sans should be properly detected, with the proper Public
Sans name.
Font substitution to 'Public Sans' should be applied in cases where the font is
indicated as 'Public Sans Light'
I'll add a sample PPTX file (I replace the text with 'a' and 'g')


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: 420(Build:2)
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Ubuntu package version: 4:24.2.7-0ubuntu0.24.04.4
Calc: threaded

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to