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

خالد حسني <kha...@aliftype.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kha...@aliftype.com

--- Comment #61 from خالد حسني <kha...@aliftype.com> ---
This is basically a Windows/MS Office compatibility issue.

First, LibreOffice is can fonts with more than 4 styles (though it can be
improved). However, GDI and MS Office can’t.

On Windows we use GDI to get font family and style, and it can only give is
families with max of 4 styles, OpenType even have a workaround for this, so
fonts with more styles can appear as multiple families in such applications
(e.g. Foo, Foo Light, Foo Black, etc). On Linux and macOS we use APIs that has
no such limitation, so a document made on Windows would be using font family
Foo Light and style Regular, but on Linux or macOS we want family Foo and style
Light.

There are two ways to fix this whole mess:
1) Forgo Windows/MS Office compatibility and find a way to get the real family
and style on Windows.
2) Enforce the compatibility contains on Linux and macOS and use the same
family and style names as on Windows.

On the technical side, solution 1) means using name ID 1 for family and ID 2
for style, and solution 2) means using IDs 16 and 17 (and falling back to IDs 1
and 2 if they are missing).

It shouldn’t be hard to implement either of these two solutions, but I don’t
know whose call is to make this decision.

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

Reply via email to