1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
Commit Graph

2646 Commits

Author SHA1 Message Date
Fini Jastrow
11ab942893 gitlab: Small change on bug template
[why]
Make sure the examples are understood correctly and add some more info.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-26 10:03:44 +02:00
guse
87402e09c2 fix: update labels and make checkboxes not required 2024-06-26 10:03:44 +02:00
guse
480f741d3b feat: improve feature request template 2024-06-26 10:03:44 +02:00
guse
fce46e4ba5 feat: improve bug report template 2024-06-26 10:03:44 +02:00
allcontributors[bot]
9f90a4ecb7
docs: add mdsanima as a contributor for maintenance (#1669)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-26 07:15:30 +02:00
allcontributors[bot]
443ebe986f
docs: add gu5e as a contributor for doc (#1668)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-26 07:09:31 +02:00
Fini Jastrow
a4ddd1e867 Fix Gohufont 14 question mark
Also clean up README situation.

Fixes: #1652

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-18 13:13:00 +02:00
Fini Jastrow
4e0ed0fbb0 Prepare Gohufont 14 question mark fix
[why]
Ordinary questionmark and inverted questionmark in upstream Gohufont 14
have the same glyph name, breaking the font.

[how]
Rename the inverted questionmark to the customary "inverted" via ttx.

This just prepares the change.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-18 13:13:00 +02:00
Fini Jastrow
45c432fe0d doc: State that no patched fonts are to be manually committed
[why]
It is explicitely explained for updating fonts but not for new fonts.

[how]
Copy appropriate text passage to new fonts paragraph.

Fixes: #1655

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-18 08:30:09 +02:00
allcontributors[bot]
6e7dc49ec4
docs: add dsvoid as a contributor for bug (#1653)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-11 20:40:39 +02:00
allcontributors[bot]
f43607afcc
docs: add kjkent as a contributor for bug (#1649)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-06-02 08:57:11 +02:00
Finii
91532f91d9 [ci] Update FontPatcher.zip 2024-06-02 06:51:23 +00:00
Fini Jastrow
b95c671ccb font-patcher: Fix behavior when trying to patch non-font files
[why]
When the file specified to be patched is not a font file the patcher run
errors out with an out of index runtime error:

Traceback (most recent call last):
  File "/home/fini/extra/git/nerd-fonts/font-patcher", line 2155, in <module>
    main()
  File "/home/fini/extra/git/nerd-fonts/font-patcher", line 2147, in main
    patcher.generate(sourceFonts)
  File "/home/fini/extra/git/nerd-fonts/font-patcher", line 415, in generate
    sourceFont = sourceFonts[0]
                 ~~~~~~~~~~~^^^
IndexError: list index out of range

[how]
Do not assume that the specified file will be a font file but rather
check if fontforge detects a font in the file and error out if there is
no font found.

Fixes: #1647

Reported-by: Kristopher James Kent <kris@kjkent.dev>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-06-02 08:48:31 +02:00
allcontributors[bot]
f647334ead
docs: add veritem as a contributor for doc (#1640)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-05-19 15:56:16 +02:00
Fini Jastrow
0e3e1c8c3e doc: Fix Homebrew in readme translations
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-05-19 15:55:52 +02:00
Fini Jastrow
96542aa983 doc: Correct moved Homebrew repo in readme.md
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-05-19 15:55:52 +02:00
Verité Mugabo
b93ff755aa chore(installation): remove cast installation as it errors out 2024-05-19 15:55:52 +02:00
Fini Jastrow
3043085331 ShareTechMono: Remove fi/fl ligs
[why]
When we crate the hard-monospaced Nerd Font Mono variant the ligs will
be shrunk to 1 cell wide, while the content of the `fi` lig is of course
two cells, ending up in strange overwriting issues.

[how]
Remove the `fl` and `fi` ligatures completely.

Fixes: 1631

Reported-by: @Markov-Komarov
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-05-08 14:23:01 +02:00
allcontributors[bot]
c0ccf85dc1
docs: add Markov-Komarov as a contributor for bug (#1632)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-05-08 13:36:43 +02:00
Finii
f182364cf4 [ci] Update FontPatcher.zip 2024-05-06 20:43:45 +00:00
Fini Jastrow
edbce6f1e3 font-patcher: Fix escaping fix
[why]
With Terminess the regex needs to match literal parens, this has been
misunderstood with the last commit.

[how]
Revert the previous commit for Terminess, and use a raw string as
solution instead (because we usually use raw strings for regexes).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-05-06 22:40:26 +02:00
Finii
4ca887fce6 [ci] Update FontPatcher.zip 2024-05-06 20:18:41 +00:00
Fini Jastrow
cb0c9ed1e7 font-patcher: Fix escaping warnings
[why]
Some strings have broken format, because the string should contain a
verbatim backslash.

It seems this is a new warning for Python 3.12

[how]
Use raw strings or escape the escape character via '\\'

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-05-06 22:13:25 +02:00
Fini Jastrow
a5704a532f doc: Slight improvement of contributing guideline
[why]
Often PRs introduce the legacy .../Bold/ etc subdirectory structure.

[how]
Make more clear that a flat directory is preferred.

Also fix several small glitches in the text.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-05-05 09:29:04 +02:00
Fini
ceea01a7cf
All contributors/add my4ng (#1624)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-05-03 08:45:01 +02:00
Finii
4b528bf1b5 [ci] Update FontPatcher.zip 2024-04-26 11:11:43 +00:00
allcontributors[bot]
db900abe1e
docs: add zaucy as a contributor for code (#1619)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-04-26 13:07:34 +02:00
Finii
4b887d6dc4 [ci] Rebuild original-source font 2024-04-26 11:04:41 +00:00
Fini
7c7b01b716
Merge pull request #1610 from zaucy/chore/update-bazel-icon
Improve bazel, ruby, firebase icons
2024-04-26 13:00:29 +02:00
Fini Jastrow
f3949ee393 font-patcher: Increase version after icon shape change
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-26 12:59:04 +02:00
Fini Jastrow
88eae283f6 Update Ruby icon
[why]
Improve legibility by having gaps between the gemstone surfaces.

[how]
There is no official monochrome icon. Found one free pixel one and
converted that to outline.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-26 12:58:21 +02:00
Fini Jastrow
e13ef50861 Update Firebase icon from original icon
[why]
Improve legibility. The full icon is in fact a multicolor icon and the
design depends on being rendered in multiple different colors. That is
impossible for fonts. So we should probably use their flat (mono-color)
icon instead, which hints the different 'flaps' through gaps instead of
colors.

[note]
Both icons (the old and the new) contradict rules given by Firebase to
use the logo. But that can not be helped in a icon font, as we just have
one color of undetermined hue.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-26 12:58:21 +02:00
Fini Jastrow
7d7ab4c3d6 Update Bazel icon from original icon
[why]
The Bazel icon might look nicer with gaps between the surfaces of the
cubes.
That is halfway in-line with the design idea of their logo.

See PR #1610 and link
https://blog.bazel.build/2017/07/05/new-logo-and-homepage.html

[how]
Based on the idea from Ezekiel Warren the Bazel icon gets gaps between
the surfaces of the cubes.
For this we use the skeleton svg icon of the Bazel website and construct
from scratch a new outline to represent the cube surfaces. The original
svg used lines with a width to create the image, which is not compatible
to fonts.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-26 12:58:21 +02:00
Fini Jastrow
548ed2aabd Revert "update bazel svg"
This reverts commit 0c1f0087b4.

[why]
We keep the seti icons unmodified and instead add them as custom if we
introduce any change.
2024-04-26 12:58:21 +02:00
Ezekiel Warren
cdd19c7715 update bazel svg 2024-04-26 12:58:21 +02:00
Finii
bbe37e7f40 [ci] Update FontPatcher.zip 2024-04-23 07:54:03 +00:00
allcontributors[bot]
327d4b8cab
docs: add gibfahn as a contributor for code (#1618)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-04-23 09:45:17 +02:00
Fini Jastrow
9e0ca39200 font-patcher: Increase version after change
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-23 09:43:48 +02:00
Gibson Fahnestock
961fa8f8c1 font-patcher: don't double-shrink heavy angle brackets
Fixes: https://github.com/ryanoasis/nerd-fonts/issues/1611

Co-Authored-By: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-23 09:43:48 +02:00
Finii
5a52c80684 [ci] Update FontPatcher.zip 2024-04-22 12:45:14 +00:00
Fini
6871fddbf5
Merge pull request #1613 from ryanoasis/bugfix/Caskaydia-long-arrows
font-patcher: Allow to rehint some Cascadia glyphs
2024-04-22 14:42:12 +02:00
Fini Jastrow
cd80b9eccc gotta-patch-em: Remove post_process
[why]
The previous change(s) removed executing the config.cfg **shell script**
which would pull in some environment variables like `post_process`.
With that change the appropriate option has to be given with the
commandline value of the new config.cfg **INI** file.

[how]
Remove defunct leftover code.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-22 14:08:28 +02:00
Fini Jastrow
e5f63a3d7a font-patcher: Improve logging while setup options
[why]
The logging to files does not work correctly for the messages given
while the options themselves are parsed.

[how]
As soon as we have enough information (after the first argument parsing)
we set the logger up. When processing the config file arguments we have
a full functioning logger now.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-22 14:08:28 +02:00
Fini Jastrow
6c6177d6a5 font-patcher: Do not rely on args.configfile
[why]
We now have two places where we can detect if a config file is given.
This should be unified.

Also handling of missing (?) sections in the config file is not always
handled gracefully.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-22 14:08:28 +02:00
Fini Jastrow
098fa410a6 font-patcher: Load config file only once
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-22 14:08:28 +02:00
Fini Jastrow
378d97cf1b font-patcher: Allow to rehint some Cascadia glyphs
[why]
Some Caskaydia Cove glyphs that are used in ligatures (to create endless
arrows for example) show uneven line thickness on some platforms.

The reason is the not-matching hinting of glyphs that are places next
to each other and so minuscule differences are quite visible.

Note that the 'original' hinting is generated by VTT on the static
Cascadia Code instances, which upstream just have ttfautohint hints that
are different from the hints in the variable fonts and people complained
that the look is different.

[how]
Add a new field to the config.cfg file that holds regexes of glyph
names for glyphs that should be re-hinted by fontforge on patching time.

In principle we could also implement that as an additional pre-step that
needs to be manually done after running VTT on the static font files.

I'm not sure which is better.

Note that fontforge generates a lot of debug output because the hinting
is not ideal - the global tables are kept and probably less compatible
to fontforge's own hinting... But the results are good.

Fixes: #1291
Fixes: #1609

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-22 14:08:28 +02:00
Fini Jastrow
88d63ff827 gotta-patch-em: Correct file type of config files
[why]
The config files are called `config.json` while the contents is
INI-like. The usual extension would be `.cfg`.

[how]
We use `.cfg` already for the shell variable configuration.

Combine both config file variants into one (real) cfg file, that is
directly read by the font-patcher and no shell variables files are used
anymore.

This needs some rewrite in gotta-patch-em to get the quoting right.
To make this simpler we remove the `--debug 1` option from the variable
and insert it directly (as it is applied always anyhow).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-22 14:08:28 +02:00
allcontributors[bot]
f07ad16bf1
docs: add FrancescoLuzzi as a contributor for bug (#1615)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Fini <ulf.fini.jastrow@desy.de>
2024-04-21 17:49:15 +02:00
allcontributors[bot]
51d411951c
docs: add gibfahn as a contributor for bug (#1612)
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2024-04-21 17:28:24 +02:00
Fini Jastrow
b984447921 font-patcher: Allow to specify more options in config file
[why]
At the moment we have two different config files:

config.cfg:
Is read by gotta-patch-em and allows to specify some needed
commandline options for a font-patcher run

config.json:
Is read by font-patcher and can contain ligature table removal
instructions

It would be nice to combine/unify them.

[how]
Add the possibility to add commandline options in the config.cfg
file. Of course we need commandline options to specify the config
file first, so the options are parsed in two steps.

The config.file takes precedence (if possible) over directly specified
options.

This is how the new section in the config file can look like:

[Config]
commandline: --powerlineextra --mono

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-04-19 14:41:48 +02:00