Summary: | Font width (expanded, condensed, etc.) is not supported | ||
---|---|---|---|
Product: | LibreOffice | Reporter: | RGB <rgb.mldc> |
Component: | LibreOffice | Assignee: | Not Assigned <libreoffice-bugs> |
Status: | NEW --- | ||
Severity: | normal | CC: | agmba, fitojb, gregab, himajin100000, khaled, martin.reitbauer, pablo.platt, sommerluk, tobsimon, toobuntu, vsfoote, xiscofauli |
Priority: | medium | ||
Version: | Inherited From OOo | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.documentfoundation.org/show_bug.cgi?id=108497 https://bugs.documentfoundation.org/show_bug.cgi?id=155853 https://bugs.documentfoundation.org/show_bug.cgi?id=159752 |
||
Whiteboard: | |||
Crash report or crash signature: | Regression By: | ||
Bug Depends on: | |||
Bug Blocks: | 102985 | ||
Attachments: | PDF output of a sample documnet using both, the variable and the standard version of Junicode Two Beta |
Description
RGB
2022-12-06 13:06:54 UTC
Created attachment 184021 [details]
PDF output of a sample documnet using both, the variable and the standard version of Junicode Two Beta
In the attached PDF you can see the behavior described in the report. The first three lines show the static versions of Junicode Two Beta in its Condensed, Regular and SemiExpanded variants. The following line show the variable version which LibreOffice label as condensed, independently of which style you select from those indicated between parenthesis. As you can see, the "condensed" from the variable font matches with the SemiExpanded static variant, not with the condensed.
The embedded variable font don't show its name in the exported PDF.
I'm sure خالد will comment, but I think https://gerrit.libreoffice.org/c/core/+/142028 was an incremental handling of variable fonts until (or even if) more work on HB based instantiation in PDF provides better glyph stamping. The mangled PS font names are there in the PDF, but I don't think we can expect the bitmap glyps to match appearance on VCL canvas yet. It does not seem to be a variable font issue, rather it seems that LibreOffice is failing to use the width variants at all, i.e. the width is always ignored. If you install the static fonts you get the same issue. I tried to debug this and now I’m very skeptical that font width ever worked, it seems to be ignored left and right. *** Bug 127377 has been marked as a duplicate of this bug. *** *** Bug 79726 has been marked as a duplicate of this bug. *** I did some debugging and it seems one layer of LibreOffice knows about font width (vcl fonts) and another layer does not (svx stuff) and at some point the fonts are serialized between the two layers and this is when font width gets lost. Probably require quite a bit of work to get it working. *** Bug 87288 has been marked as a duplicate of this bug. *** This issue does not show up on Windows because Windows GDI supports only R/I/B/BI styles and will split large families into multiple subfamilies (so instead of Foo font with style Condensed, you get Foo Condensed with style Regular), but the buggy code is in the platform-independent parts of LibreOffice. *** Bug 98596 has been marked as a duplicate of this bug. *** |