Skip to content

Fix build with glyphsets v1#282

Open
aelmahmoudy wants to merge 1 commit into
aliftype:mainfrom
aelmahmoudy:glyphsets-v1
Open

Fix build with glyphsets v1#282
aelmahmoudy wants to merge 1 commit into
aliftype:mainfrom
aelmahmoudy:glyphsets-v1

Conversation

@aelmahmoudy

Copy link
Copy Markdown
Contributor

This is a patch applied in Debian, I'm not sure if it applies for upstream

@aelmahmoudy

Copy link
Copy Markdown
Contributor Author

This patch works with python3

@khaledhosny

khaledhosny commented Apr 25, 2026

Copy link
Copy Markdown
Member

The CI pins Python dependencies to specific versions that I verified produce correct output. If you want to use the new glyphsets API, you will need to update the pinned version in requirements.txt. However, I strongly advice against building with any versions of the dependencies other than the pinned ones, since last time I updated them they produced a broken font and I had to revert it (d901cb3, google/fonts#9420 (comment)). Unless you are planning to debug the breakage, I suggest simply shipping the binary files I provide.

@aelmahmoudy

aelmahmoudy commented May 1, 2026 via email

Copy link
Copy Markdown
Contributor Author

@khaledhosny

Copy link
Copy Markdown
Member

Can you see if the attached fonts have that problem ? They are extracted from: http://ftp.us.debian.org/debian/pool/main/f/fonts-hosny-amiri/fonts-hosny-amiri_1.003-5_all.deb

It has the kerning issue. You can easily test with hb-shape:

$ hb-shape fonts/Amiri-Regular.ttf AV
[A=0+550|V=1+623]
$ hb-shape usr/share/fonts/opentype/fonts-hosny-amiri/Amiri-Regular.ttf AV
[A=0+612|V=1+623]

The first one is the font from this repo, the second one is the font from the Debian package, notice the difference in A width due to lack of kerning in the Debian version.

@aelmahmoudy

aelmahmoudy commented May 15, 2026 via email

Copy link
Copy Markdown
Contributor Author

@khaledhosny

Copy link
Copy Markdown
Member

Possibly, yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants