Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

font-patcher: Fix unexpected 'Book' SubFamily #1047

Merged
merged 1 commit into from
Jan 13, 2023
Merged

Conversation

Finii
Copy link
Collaborator

@Finii Finii commented Jan 13, 2023

[why]
Sometimes we set an empty string as SubFamily name. That ends up as 'Book' which is unexpected.

[how]
The translation from empty to "Book" is done by Fontforge, at least with version 20220308.

Make sure we always have a SubFamily, and if we don't that must be a 'Regular'.

[note]
This was only a problem with the old naming engine. --makegroups got this right always.

Fixes: #1046

Requirements / Checklist

What does this Pull Request (PR) do?

How should this be manually tested?

Any background context you can provide?

#780 (comment)

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

[why]
Sometimes we set an empty string as SubFamily name. That ends up as
'Book' which is unexpected.

[how]
The translation from empty to "Book" is done by Fontforge, at least
with version 20220308.

Make sure we always have a SubFamily, and if we don't that must be a
'Regular'.

[note]
This was only a problem with the old naming engine. --makegroups got
this right always.

Fixes: #1046

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii
Copy link
Collaborator Author

Finii commented Jan 13, 2023

@MIvanchev

I'm having some issues testing because the patcher sets weight to Book vs Regular. Is there a way to change this @Finii

It's a bug, it's fixed with this PR.

@Finii
Copy link
Collaborator Author

Finii commented Jan 13, 2023

Currently CI has problems, Azure ...

Could not connect to azure.archive.ubuntu.com:80 (20.106.104.242), connection timed out [IP: 20.106.104.242 80]

@Finii
Copy link
Collaborator Author

Finii commented Jan 13, 2023

Tests ran successfully on https://github.com/ryanoasis/nerd-fonts/actions/runs/3909272670

Merging.

@Finii Finii merged commit e97e795 into master Jan 13, 2023
@Finii Finii deleted the bugfix/regular-naming branch January 13, 2023 07:41
@Finii Finii mentioned this pull request May 22, 2023
3 tasks
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.

Unexpected Subfamily 'Book'
1 participant