Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[why] The Light fonts are not grouped to the Regular and Bold fonts in typographic names aware applications. [how] This is a longer standing problem with font-patcher, that does not fill the typographic family and style with meaningful values. We could do better with the `do_rename` script, but we did not. Instead of repairing the `do_rename` script the `name_parser.py` module is included, that I would like to get into `font-parser` to repair its behaviour for all fonts. As noone knows when or if at all it will end up in the patcher script, we add the same code here. The module will set the 4 names (family, subfamily, typogr. family and typogr. style) in a way that we get correct grouping in both application types: typographic aware one and 'ordinary' ones. [note] The `name_parser.py` originates here: ryanoasis/nerd-fonts#706 Fixes: #72 Reported-by: Rashil Gandhi <mail@rashil2000.me> Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
- Loading branch information
Showing
5 changed files
with
520 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ otf/ | |
ttf/ | ||
woff2/ | ||
font-patcher* | ||
__pycache__/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.