View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0017217 | Scribus | Fonts | public | 2024-05-14 21:45 | 2024-05-20 22:12 |
Reporter | hebrides | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | new | Resolution | open | ||
OS | Windows 10 Pro | ||||
Product Version | 1.6.0 | ||||
Summary | 0017217: Variable fonts only select one font (the thinnest) per .ttf file | ||||
Description | I've downloaded a bunch of variable fonts from Google Fonts. As variable fonts, these package all the different weights in one .ttf file (with separate files for all the italic weights, all the condensed weights, all the italic condensed weights, etc as applicable). This works fine for every other application I've used - Inkscape, Word etc. However, Scribus only took the thinnest weight from each file. So Source Sans 3 only arrived with the ExtraLight and ExtraLight Italic options; Montserrat with only the Thin and Thin Italic options. The workaround I've used is just to go to Github and pull a separate .ttf file for each weight. But that works for me because I'm only really interested in two fonts; if it were many more it would quickly get very tedious! | ||||
Tags | No tags attached. | ||||
Patch | No | ||||
|
an example is https://fonts.google.com/specimen/Source+Sans+3 the .zip contains the two variable fonts and all the weights in a sub folder. |
|
At the moment variable fonts are not supported. Also Freetype sees a single face in these fonts. The specifics of variable fonts would need work, for example just to subset or embed them in PDF files... because PDF format does not support variable fonts. |
|
I did some research and FreeType seems to support variable fonts: https://stackoverflow.com/questions/57111097/does-freetype-support-variable-fonts https://freetype.org/freetype2/docs/reference/ft2-multiple_masters.html I cannot judge if this would allow Scribus to have variable fonts both in the UI and in the PDF export. |
|
Freetype would not help much as it does not do the job of converting variable fonts to static fonts for PDF export. We could embed variable fonts as Type 3 fonts or maybe look if harfbuzz subsetter could do the job for us. |