usted / Albert-Sans

SIL Open Font License 1.1
93 stars 3 forks source link

OTF and TTF versions of Albert Sans (v1.3) lead to different line spacing in Word for Windows #5

Closed HolgerGerhardt closed 2 months ago

HolgerGerhardt commented 2 months ago

The line spacing of the OTF version is substantially larger than that of the TTF version in Word (Microsoft 365, current version) for Windows (11):

TTF version:

TTF

OTF version:

OTF

This can be very annoying when collaborating with others on a document or when editing the document on different computers, since one has to make sure that the same font format is used on all machines.

kenmcd commented 2 months ago

This is a problem in Word, not in the fonts. Line spacing of 1, or 1.15, or 2, etc. does not work. The work-around is to use a fixed line height, in points. This is due to the bizarre way Word calculates line height.

Try it with other fonts. You will see the same thing. The problem is not the fonts.

HolgerGerhardt commented 2 months ago

I can certainly imagine that Word plays a role in this. However, the font files do seem to have an influence, too:

I just tested this using the OTF and TTF versions of Source Serif 4 (https://github.com/adobe-fonts/source-serif/releases/tag/4.005R) and of Inter v4 (https://rsms.me/inter/download/). At least these two typefaces have identical line heights for the OTF and TTF versions.

usted commented 2 months ago

This is a strange issue that is due to mac os system. It can be fixed by including The STAT table in the font files. Unfortunately GF ignores that tag and doesn't include it. So to make a Long story short: i have fixed The issue by lowering The height of The accents. So it's fixed in The new release. Thank you both.

HolgerGerhardt commented 2 months ago

I have just tried the current version of Albert Sans. Unfortunately, the issue still exists:

TTF:

TTF

OTF:

OTF

This is a strange issue that is due to mac os system.

Please note that my bug report concerned Word for Windows, not macOS.