Skip to content

[feaLib] pad a short OS/2 Vendor with spaces - #4259

Merged
anthrotype merged 1 commit into
fonttools:mainfrom
RavSinghChandan:fealib-vendor-pad-spaces
Oct 8, 2026
Merged

anthrotype merged 1 commit into
fonttools:mainfrom
RavSinghChandan:fealib-vendor-pad-spaces

Conversation

@RavSinghChandan

Copy link
Copy Markdown
Contributor

table OS/2 { Vendor "AB"; } OS/2; sets achVendID to "AB", which sstruct packs
as b"AB\x00\x00". The OpenType spec says a Tag is padded with trailing spaces
(0x20), and #3280 settled that the producer should pad the vendor ID with spaces
rather than fontTools changing the OS/2 packing.

feaLib is such a producer, so it now pads the Vendor string to four characters
with spaces. A four-character vendor such as "ADBE" (spec9f.fea) is unchanged.
Added a test.

@anthrotype
anthrotype merged commit 6595c3f into fonttools:main Oct 8, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants