1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-13 17:18:37 +02:00
Commit Graph

1522 Commits

Author SHA1 Message Date
Fini
98f009d491
Merge pull request #981 from ryanoasis/bugfix/licenses-in-archives
Bugfix licenses in archives
2022-10-25 19:40:12 +02:00
Fini Jastrow
fd06e48561 doc: Add Codicons license code
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-25 19:32:25 +02:00
Fini Jastrow
3d8d673cb5 patch-em-all: Purge old license files
[why]
Old (renamed) license files are not cleaned up automatically.
The new files will be put into the patched-fonts dir, but old ones not
removed.

[how]
With commit
  afd7ba10  patch-em-all: Purge destination dirs if possible

the script purges old font files from the patched-fonts directory to get
rid of renamed font files. This has been deliberately limited to ttf and
otf files.

But as all license files are automatically copied over we can also
remove them.

This (finally) remove the possibility to manually put any files in those
directories. This can be good or bad.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-24 14:15:03 +02:00
Fini Jastrow
4e3f64e22b Add missing LICENSE files (simulate CI)
In fact these would/will be recreated on a gotta-patch-em-all-font-patcher!.sh
run.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-24 14:01:17 +02:00
Fini Jastrow
2ace3de8ad archive-fonts: Fix missing licence files
[why]
We have 'license' is the archives, but the 'licence' files are missing.
We allow all-caps and all-lowercase, but not camelcase 'License'.
Sometimes we have OFL.txt which is missing.

[how]
Enable both spellings and also camelcase.
Enable OTF text files.

Also fix misunderstanding of regex vs glob ([] vs {}), where the glob
needs a comma and the regex does not.

Add missing LICENSE files for 2 fonts.

Fixes: #979

Reported-by: Jeremy Thorn <moralground>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-24 13:55:45 +02:00
Fini
c156c4d37d
Merge pull request #978 from ryanoasis/feature/update-seti
Update seti to current version
2022-10-21 14:43:06 +02:00
Fini Jastrow
677aa3ced9 Activate new Seti icons
The end codepoint needs to be shifted, now all new icons are patched in.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-21 13:03:53 +02:00
Finii
9422970663 [ci] Rebuild original-source font 2022-10-20 10:04:28 +00:00
Finii
9cce0fc964 [ci] Simplify original-source source glyphs 2022-10-20 10:04:26 +00:00
Fini Jastrow
7ffc6d976e Fix shell icon
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 12:00:05 +02:00
Fini Jastrow
1ba9a0313c Simplify paths in the svgs
$ ./optimize-original-source.sh doit

Checking for SVG simplifications
  Files might be MODIFIED by this run ('doit' specified)
Found 177 svgs in ../../src/svgs
Simplification for ocaml.svg (5249 -> 3604) 68%
Simplification for apple.svg (3228 -> 2302) 71%
Simplification for pug.svg (5507 -> 4243) 77%
Simplification for jenkins.svg (13014 -> 6406) 49%
Simplification for firefox.svg (6276 -> 4640) 73%
Found 5 svgs to simplify

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 11:36:18 +02:00
Fini Jastrow
912093fcfb Fix prolog icon
This still had a path direction mismatch.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 11:30:41 +02:00
Fini Jastrow
547e009d20 Remove gaps from icons.tsv
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 10:04:58 +02:00
Fini Jastrow
f2c365f469 Fix more complicated issues in svgs
[why]
Some of the svgs still render incorrect in fontforge.

[how]
Different issues, for example wrong direction of the sub-path and still
(forgotten?) multiple layers, etc. Manually tinker until they work.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 10:04:58 +02:00
Fini Jastrow
237d7640a6 Clean up svgs
Outline fonts are a bit picky about the embedded svgs.
Best is if there is only one path.

Ungrouped and path merged in Inkscape manually.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 10:04:58 +02:00
Fini Jastrow
1e75dfac76 Remove more doubles
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 10:04:58 +02:00
Fini Jastrow
974249b534 Actually use new Seti
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 10:04:58 +02:00
Fini Jastrow
2beed43447 Clean up icon doubles
Some icons are now existing twice.

* Their crystal icon looks wrong (rotationwise), compare with https://github.com/crystal-lang/crystal
* Their C logo misses the standard's hex shape
* Their C++ logo misses the standard's hex shape
* Their Elixir icons has a dent in the reflextion?
* Their Elm icon is colored
* Their Git Folder is not a folder
* Their Kotlin icon is colored
* Their Puppet icon is more correct
* Their Pursescript icon is identical
* Their Windows icon is more modern

That means:

* Do not include their crystal, elixir, elm, kotlin, purescript
* Do not include our puppet, windows
* Keeping both c, c++, git-folder

[note]
Keeping their old files around with changed suffix to find this commit
in the future on updates.

Reuse old icons that were labeled as 'seti' but have been vanished as
new custom types with appropriate file naming.

And remove 'red' versions of icons. We have a black and white font...

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 10:04:32 +02:00
Fini Jastrow
589b0dfd9d Mix all custom icons into seti
Add "_nf" suffix to our own svgs.
Add our icons database

Adapt filename in icons database
Just change the filenames of the custom icons to include the new "_nf"
suffix.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 10:02:52 +02:00
Fini Jastrow
148b0c4455 Sunset ligature removal
[why]
Keeping the ligature removal tables up to date with source font updates
is quite a maintenance burden.

Usually if a terminal supports ligatures at all it has an option to
disable them.

Present ligatures do not prevent monospaced fonts and monospaced
detection.

It was only present in v2.0.0, and the code has been broken with v2.1.0.

[note]
Updated example ligature removal table to the one for Iosevka.
Left stubs in relevant code passages to facilitate finding this commit.

Fixes: #976
Fixes: #975
Fixes: #973

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-20 08:44:55 +02:00
Fini Jastrow
4ada58a660 Add all current seti svgs
From master branch, commit
fd20793e5a

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-19 08:31:59 +02:00
Fini Jastrow
83d41b6220 CI: Fix workflow for the gh-pages (still ongoning?) [skip ci]
[why]
checkout-files checks out the last version on the push target branch,
not the version we actually pushed.

checkout clears all the workspace, so out file we want to commit is
lost.

[how]
Use commit hash from just pushed commit.

Use temporary directory outside of workspace to store the file.
Unfortunately we haved to copy back because github-pages-deploy-action
seems to take no absolute paths.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-18 20:47:29 +02:00
Fini Jastrow
7860afd295 Unify descriptive text in fonts.json
[why]
The description is displayed like this:

* Info: <description>

Sometimes the description text starts with lowercase, sometimes with
caps. This looks weird.

[how]
Always start the description with uppercase.

[note]
Also correct missing(?) description for one font.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-18 19:12:20 +02:00
Fini Jastrow
65eaac85c7 CI: Fix workflow for the gh-pages
Well, ... we need to fetch the git repo, as the deploy action needs it.
Which is documented... :-}

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-18 19:00:26 +02:00
Fini Jastrow
55e5666821 Remove wrong "Ubuntu" font preview link
[why]
Both, Ubuntu and Ubuntu Mono link to the #Ubuntu preview on
ProgrammingFonts.org. But that ends up in Ubuntu Mono. You can not
preview the proportional version.

[note]
This commit must be synched to branch gh-pages manually.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-18 18:39:27 +02:00
Fini Jastrow
1061a623a8 CI: Add workflow for the gh-pages [skip ci]
[why]
A lot of the stuff in the gh-pages is not yet automatized.
See bin/scripts/README.md items with "[3]".

[how]
Start at least with the fonts database file.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-18 18:39:16 +02:00
Fini Jastrow
fac356ce20 doc: Add last missing sourcefont infos
Tried to come up with a good link to each of the source fonts. Some have
just been released once years ago and have no homepage anymore: They now
have a link to google's font repository or at least the designer name
mentioned.

Also checked all fonts for upstream updates, results are in
https://github.com/ryanoasis/nerd-fonts/discussions/962#discussioncomment-3894678
2022-10-18 18:39:03 +02:00
Fini Jastrow
70c3f20ae8 doc: Fix direct raw links [skip ci]
Raw links can be linked to HEAD (which resides in the default branch)
rather than - (which is the default branch).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-17 12:33:45 +02:00
Fini Jastrow
0101e3c24f doc: Remove EM size from readme source-font table [skip ci]
[why]
With addition of the version the lines are too long to be rendered
without wrap in the default gitlab width.

The EM size is not really relevant for most, while the version is.
And we want a concise table, so something has to leave.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-17 11:58:28 +02:00
Fini Jastrow
b82bd819aa Remove mentions of master branch [skip ci]
[why]
If we ever switch the default branch the links would break. So just say
'default branch' directly, whichever that may be.

[note]
CI workflows not changed, I do not know if there is an alias for the
default branch available.

Fixes: #971 (partially)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-17 11:50:53 +02:00
Fini Jastrow
5b2edf9ecf doc: Add sourcefont versions to readme
[why]
This makes it easier to check if we are up to date.

[note]
Just checked the versions where a source links has been given.

Updated a few links and sorted stuff.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-17 11:25:26 +02:00
Finii
f1094f1fad [ci] Rebuild original-source font 2022-10-13 14:43:09 +00:00
Fini Jastrow
49878a2f61 CI: Remove set-output commands [skip ci]
[why]
The set-output command will be removed, see [1].

[how]
Use output environment file instead.

[1] https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-13 16:37:20 +02:00
Fini Jastrow
5fe831289f ci: Change commit message of rebuild [skip ci]
[why]
Messages should be in the imperative form.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 14:02:08 +02:00
Fini Jastrow
26a435e020 Rebuilds patched fonts
[how]
./gotta-patch-em-all-font-patcher\!.sh /NerdFontsSymbolsOnly

Just add `Mono` variants to commit.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 13:47:45 +02:00
Fini Jastrow
f84b4a26e4 Symbols Only font: Remove gaps
[why]
We do not want fonts with gap. Gaps are explicitely removed on patching
anyhow. Why should the templates have gaps?

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 13:46:54 +02:00
Fini Jastrow
3e478f7cf8 font-patcher: Fix empty input font detection
[why]
If we have an empty input font (i.e. for Symbols Only font) and that
font has a gap.. That gap will be redistributed to a gapless font where
the ascenders and descenders are expanded to fill/keep the gap.

If the font has no height (i.e. == ) and a gap, the height will
afterwards be > 0 and the empty font detection breaks.

[how]
Detect empty fonts before gaps.

Fixes: #965

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 13:46:54 +02:00
Fini Jastrow
6f4af9482d font-patcher: Clarify height code
[why]
Use of abs() looks like we do not know if the descenders are expected
to be positive or negative. But it is well defined.

Furthermore on abnormal fonts (where the descenders are nonexisting)
we can use the wrong value. Well, that is academic I guess.

[how]
In our own `ymin` value we store a value like os2_descender, which means
that it is on the same axis as the ascender (ymax). Typical values where
the baseline is on y-coordinate 0 ymax will be positive and ymin (being
below the baseline) will be negative.

The total height has to be calculated from adding ascender + -descender
(when the descenders are lower than the ascenders, which is guaranteed).

The older descender values have positive values; are on an opposite y
axis... The height with them would be ascender + descender.

Well, WE have in the font_dim os2-like values...

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 13:46:54 +02:00
Fini Jastrow
4bca7849fe gotta-patch-em-all: Fix config_has_powerline
[why]
There is code that shall read the config file and act on
config_has_powerline.

Usually it is set to "1", but Ubuntu has this "0".

Regardless the content, if the variable has content the code assumes the
value is true. That is probably not wanted.

[how]
Use a numeric comparison.

[note]
```
git blame UbuntuMono/config.cfg
4abe6c77b0 Ubuntu/Bold-Italic/config.cfg (Ryan L McIntyre 2017-07-23 17:17:21 -0400 1) config_has_powerline=0
```

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 10:01:06 +02:00
Fini Jastrow
fc22acc3e3 doc: Fix link to pull request course
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 09:05:23 +02:00
Fini Jastrow
de06ddfcbc Rebuilds patched fonts
[why]
We do not want to rebuild all fonts, just the affected ones.
Without a proper release timestamp this is impossible (i.e. harder) to
do via CI, so do it manually 😬

[how]
./gotta-patch-em-all-font-patcher\!.sh /JetBrainsMono/Ligatures/ExtraLight
./gotta-patch-em-all-font-patcher\!.sh /JetBrainsMono/Ligatures/Light

Hmm, the patched fonts got slightly smaller. These font file sizes are a
mystery for me.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 08:49:44 +02:00
Fini Jastrow
a72f9961dd Fix JetBransMono != ligature
[why]
In JetBrainsMono v2.242 the exclam-equal ligature is broken.
It has been fixed in v3.000.

[how]
The JetBrains Mono v3 has not been released yet. So we just transplant
the one broken glyph from v3.000 into our v2.242.

[note]
https://github.com/JetBrains/JetBrainsMono/issues/494

Fixes: #963

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-12 08:49:44 +02:00
Finii
da88bdb616 [ci] Rebuilds patched fonts 2022-10-10 16:49:55 +00:00
Fini Jastrow
ee17073b62 font-patcher: Fix checksum algo
[why]
For some fonts the calculated checksum(s) was wrong.

[how]
Misplaced the multiplier ... the LSB shall not be shifted of course, but
the current code shifts as last action: Also the LSB is shifted.

First shift (old) accumulated content, then add new data.
In that way the last added data (LSB) is not shifted.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-10 16:29:20 +02:00
allcontributors[bot]
876faa922a docs: update .all-contributorsrc [skip ci] 2022-10-09 10:29:08 +02:00
allcontributors[bot]
296eef9074 docs: update CONTRIBUTORS.md [skip ci] 2022-10-09 10:29:08 +02:00
Fini Jastrow
0f8b75f3c3 Update changelog [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-10-08 19:55:59 +02:00
allcontributors[bot]
a1730fa10e docs: update .all-contributorsrc [skip ci] 2022-10-08 18:36:23 +02:00
allcontributors[bot]
b3199a7286 docs: update CONTRIBUTORS.md [skip ci] 2022-10-08 18:36:23 +02:00
Kurt
322d08f824 doc: update zh-tw translation documentation 2022-10-08 18:36:06 +02:00