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

update Intel One Mono to 1.3.0 #1558

Merged
merged 3 commits into from
Mar 30, 2024
Merged

update Intel One Mono to 1.3.0 #1558

merged 3 commits into from
Mar 30, 2024

Conversation

landfillbaby
Copy link
Contributor

@landfillbaby landfillbaby commented Mar 25, 2024

Description

updated Intel One Mono to 1.3.0, and (hopefully) fixed everything relating to its updated file names and internal family names. I may have even changed more than is needed ...

Requirements / Checklist

What does this Pull Request (PR) do?

updates Intel One Mono to 1.3.0

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

@@ -700,6 +700,7 @@ class font_patcher:
'firasans' : 'furasans',
'IntelOneMono' : 'IntoneMono',
'IntelOne Mono' : 'Intone Mono',
'Intel One Mono' : 'Intone Mono',
Copy link
Contributor Author

@landfillbaby landfillbaby Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this might not be needed actually, the release version 3.1.1 does rename it properly. should I remove it?

Copy link
Collaborator

@Finii Finii Mar 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, the legacy renaming in the font-patcher is not used, normally (probably we should remove it completely).
And the rule added by

  • d3181df name-parser: Add IntelOne replacement to SIL table

is rather forgiving ;-)

(But this change is the correct thing to do, so keep it.)

Lets compare the actual names (via [1])

======== intelone-mono-font-family-regular.ttf ========
SFNT Fullname      ID 4     IntelOne Mono
SFNT Family        ID 1     IntelOne Mono
SFNT SubFamily     ID 2     Regular
SFNT Pref Family   ID 16    -
SFNT Pref Styles   ID 17    -
SFNT PS Name       ID 6     IntelOneMono-Regular
SFNT Compatible    ID 18    -
SFNT CID findfont  ID 20    -
SFNT WWS Family    ID 21    -
SFNT WWS SubFamily ID 22    -
PS fontname                 IntelOneMono-Regular
PS fullname                 IntelOne Mono
PS familyname               IntelOne Mono
fondname                    None

======== IntelOneMono-Regular.ttf ========
SFNT Fullname      ID 4     Intel One Mono
SFNT Family        ID 1     Intel One Mono
SFNT SubFamily     ID 2     Regular
SFNT Pref Family   ID 16    -
SFNT Pref Styles   ID 17    -
SFNT PS Name       ID 6     IntelOneMono-Regular
SFNT Compatible    ID 18    -
SFNT CID findfont  ID 20    -
SFNT WWS Family    ID 21    -
SFNT WWS SubFamily ID 22    -
PS fontname                 IntelOneMono-Regular
PS fullname                 Intel One Mono
PS familyname               Intel One Mono
fondname                    None

[1] bin/scripts/name_parser/query_name

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and ...

'firasans'       : 'furasans',

is technically wrong, which is good, because it is also wrong from the contents, so a bug fixes the bug ;-D

(I believe, the legacy renaming I never test)

@Finii Finii added this to the v3.2.0 milestone Mar 25, 2024
@Finii
Copy link
Collaborator

Finii commented Mar 25, 2024

Thanks for the PR, some small things I will just fix on the fly.

💚

[why]
The fontconfig is autogenerated by the release process with the
bin/scripts/generate-fontconfig.sh script. The reason is that its
contents should match the released fonts (i.e. the latest release).

Also:
Upstream changed the name grouping a bit, so the superfluous "Bold"
family has been dropped (and does not need an entry anymore).

[how]
Revert the (manual) change and wait for the release process to
update the fontconfig.

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

Finii commented Mar 25, 2024

Very nice PR, you fixed stuff I would have propably forgotten 😬

Nowadays we do not put the fonts into separate subdirs anymore, maybe this is a good time to change it for IntelOne.
The release archives never had the subdir structure and I personally do not really like it from a usability perspective.

What do you think about the subdir structure with patched-fonts/IntelOneMono/Bold/...-Bold.ttf?

@Finii
Copy link
Collaborator

Finii commented Mar 25, 2024

Oh I just noticed it is not in-repo-released anyhow...

Screenshot 2024-03-25 at 18 51 10

So I think we should drop the subdirs.

[why]
For new fonts we do not create one subdirectory for each font file anymore.
The (historic) reason were the many variants that each font file had been
patched with. Nowadays we just have 3 variants for each font file.

And anyhow this font is release archive released only.

[how]
Simplify update script and move font files.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
@Finii Finii added the Ready ⛱ Ready to merge but waiting to be merged near a release label Mar 25, 2024
@Finii Finii merged commit f81f17a into ryanoasis:master Mar 30, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❲Aa❳ update font version bump Ready ⛱ Ready to merge but waiting to be merged near a release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants