ryanoasis / nerd-fonts

Iconic font aggregator, collection, & patcher. 3,600+ icons, 50+ patched fonts: Hack, Source Code Pro, more. Glyph collections: Font Awesome, Material Design Icons, Octicons, & more
https://NerdFonts.com
Other
53.46k stars 3.61k forks source link

Bugfix for Visual Studio 2022 #1406

Closed Finii closed 9 months ago

Finii commented 9 months ago

Description

name-parser: Unify abbreviations in family names

[why] Because the newer Preferred/Typographic names ID 16 and ID 17 have not a very demanding length limit we add the long form of the name addendum (i.e. Nerd Font, Nerd Font Mono, Nerd Font Propo).

In the more restricted old names ID 1 and ID 2 we use the short forms (i.e. NF, NFM, NFP).

This seems to be problematic with Visual Studio (Community) 2022 and the fonts can be selected but are not really used.

The Postscript family name is never shortened which seems to be of no consequence, but still is different than the other.

[how] When creating the Preferred/Typographic Family (ID 16) we check the shortening mode first and abbreviate the parts as needed and alike ID 1.

This will also change the filenames, because they base on the SFNT table. We can not change that without changing the whole mechanism.

[note] Also add new tool that lists all names of fonts, including the Postscript ones.

Fixes: #1242

Requirements / Checklist

What does this Pull Request (PR) do?

How should this be manually tested?

Any background context you can provide?

What are the relevant tickets (if any)?

Screenshots (if appropriate or helpful)

Finii commented 9 months ago

Forgot about the keep regular rule -> force push