flathub / org.libreoffice.LibreOffice

https://flathub.org/apps/details/org.libreoffice.LibreOffice
29 stars 18 forks source link

Truetype collections .ttc file not showing all available styles in fonts list/character menu #280

Open Sunspark-007 opened 4 months ago

Sunspark-007 commented 4 months ago

Applies to 24.2 and earlier versions.

Truetype .ttc collections files do not always show all available styles in the Libreoffice menu. An example is the "Sitka" set from Windows which comes as Sitka.ttc SitkaB.ttc SitkaI.ttc and SitkaZ.ttc. Inside each of these .ttc files is 5 .ttf files for each style (e.g. text, banner, etc.)

As-is, the character menu will only show banner type. You can select bold, italic, etc. but you cannot select a different style like subheading or whatever.

The KDE font management panel does show all the styles in the list, so I don't know if this issue is related to the flatpak using gtk or some other issue.

Sunspark-007 commented 4 months ago

I broke out the individual ttf fonts from the ttc as a test. Libreoffice still only displays 1 style, banner. Firefox by comparison which also uses GTK does show each individual style and you can select them individually in Firefox.

Update: It seems that in the character menu, if you type manually the family name you gave it, the font will change and you can select the style such as bold, but the list of font names does not change in the regular list.

stbergmann commented 4 months ago

Do you know whether this is specific to the flatpak version of LibreOffice? If it also happens with the "plain" version, please rather report this issue via https://bugs.documentfoundation.org/enter_bug.cgi?format=guided.