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

2233 Commits

Author SHA1 Message Date
Finii
f7e02548e8 [ci] Update FontPatcher.zip 2023-10-27 17:32:21 +00:00
Finii
e2f0e9334f [ci] Rebuild original-source font 2023-10-27 17:28:53 +00:00
Fini Jastrow
27f6ea142d neovim: Improve icon
[why]
The left leg is far too thin.
The gaps between the left legs are rather small.
That makes noticing the details hard, but that are decisive elements.

[how]
Manually edit in Inkscape...

Reported-by: berlinx2104
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-27 19:21:17 +02:00
allcontributors[bot]
df85a87c88 docs: update .all-contributorsrc 2023-10-23 15:33:55 +02:00
allcontributors[bot]
61a804378b docs: update CONTRIBUTORS.md 2023-10-23 15:33:55 +02:00
Finii
e1150d7c86 [ci] Update FontPatcher.zip 2023-10-23 11:49:59 +00:00
Finii
798d4ad3db [ci] Rebuild original-source font 2023-10-23 11:45:51 +00:00
Fini
39dd0cb736
Merge pull request #1391 from georgeguimaraes/gg-add-neovim-icon-to-custom
Add Neovim icon (fixes #1383)
2023-10-23 13:42:02 +02:00
Fini Jastrow
5a7ab777d6 Fixup: neovim: Improve filename
[why]
If the svg file is renamed the icon list has to be updated :rolleyes:

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-23 13:38:10 +02:00
Fini Jastrow
3d860fbb83 Revert: "run generate-original-source.py"
[why]
We want the workflow to do this so that we have control over the
fontforge version that is used.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-23 13:34:06 +02:00
Fini Jastrow
5615d5e120 font-patcher: Increase after new core icon
[why]
After a new icon has been added to the core set we want to make that
visible via a new version number.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-23 13:29:40 +02:00
Fini Jastrow
654855a067 doc: Further contributing information on icon core set
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-23 13:27:39 +02:00
Fini Jastrow
7bceb83919 doc: Improve contributing manual
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-23 13:17:56 +02:00
Fini Jastrow
43eb9a1260 neovim: Improve filename
[why]
To avoid filename clashes between Seti and Custom we have all Custom
files with a _nf suffix. This has not been documented.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-23 13:15:57 +02:00
George Guimarães
bc374ce62b Add Neovim icon and run generate-original-source.py 2023-10-20 15:09:08 -03:00
allcontributors[bot]
18ff974fba docs: update .all-contributorsrc 2023-10-17 15:23:47 +02:00
allcontributors[bot]
8e32fa7e00 docs: update CONTRIBUTORS.md 2023-10-17 15:23:47 +02:00
King Art
e0fa68b1f1 doc: Correct name for AnonymicePro Nerd Font 2023-10-17 15:23:27 +02:00
Fini
18dd35edcd
Merge pull request #1382 from ryanoasis/all-contributors/add-piraces
docs: add piraces as a contributor for code
2023-10-16 09:19:27 +02:00
allcontributors[bot]
3499a700ed
docs: update .all-contributorsrc 2023-10-13 19:56:10 +00:00
allcontributors[bot]
8f7eeed140
docs: update CONTRIBUTORS.md 2023-10-13 19:56:09 +00:00
Fini Jastrow
f7885a147d doc: Make new wiki page on options more prominent
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-13 20:53:13 +02:00
Finii
1c24cc5d59 [ci] Update FontPatcher.zip 2023-10-13 18:50:39 +00:00
Fini
2870965663
Merge pull request #1300 from ryanoasis/feature/metrics-option
Add option for metrics and boxdrawing
2023-10-13 20:47:42 +02:00
Fini Jastrow
5911f1078f doc: Link help-on-options wiki page [skip ci]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-13 14:09:29 +02:00
Fini Jastrow
d2c9e1589e doc: Fix broken link to patcher section in readme
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-13 14:03:23 +02:00
Fini Jastrow
99f3b20ecf font-patcher: Drop some option alternatives
[why]
It is rather confusing to have so many aliases.

[how]
Remove some long forms and some alternatives, to make the help page
easier to read.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-13 12:42:46 +02:00
Fini Jastrow
9bfe6d165a font-patcher: Sort and regroup help message
[why]
It can be hard to find the 'usual' options in between all the expert
options.

[how]
Regroup the options and sort them alphabetically (most of the time).
Not sure if this helps, but in my personal view this makes it easier.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-13 12:32:12 +02:00
Fini Jastrow
c7b7cc97bb font-patcher: Add option to force patching in box drawing glyphs
[why]
When the original font designer's idea of cell height differs from the
height we deduce the box drawing glyphs come out with the wrong size (if
we do not touch them, for example because the font already has a
complete set).

[how]
Add option that enforces patch-in of the box set.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-13 11:52:27 +02:00
Fini Jastrow
72fb7fb814 font-patcher: Add option to select metrics source
[why]
If the font has contradicting baseline to baseline metrics the patcher
tries to find a sane value and use that. That automatism gets it right
in most cases, but there might be fonts where the user wants a different
metric to be used.

At the moment the use would need to use `font-line` to adjust the
metrics, which is not very convenient.

[how]
Add option to select one of the metricses.
Use that metrics when setting up the patched font.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-13 11:52:27 +02:00
Finii
62f48f3109 [ci] Update FontPatcher.zip 2023-10-07 11:04:52 +00:00
Fini Jastrow
01569cad8e name_parser: Fix weight_string_to_number()
[why]
Some PS weights have a dash in the weight, like 'Extra-Light' in
Iosevka. The parser can not parse it because it expects 'ExtraLight'.

[how]
Filter out all '-' and ' ' from the PS weight string before actually
parsing the string.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-07 13:02:20 +02:00
Fini Jastrow
89f1325205 name_parser: Correct output on weight check
[why]
When the weight check fails for some input the reason is not shown
correctly (i.e. not the string that actually failed).

[how]
Display exactly the failed string in the warning.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-07 13:02:20 +02:00
Fini Jastrow
809101da32 font-patcher: Improve weight checking
[why]
When the font does not have a PSweight string the font-patcher bugs.

[how]
Rewrite the code to be more robust against unexpected weight values.
Also make detected problems non-fatal.

Reported-by: František Hanzlík <frantisek_hanzlik@protonmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-07 13:02:20 +02:00
allcontributors[bot]
3fab6616e5 docs: update .all-contributorsrc 2023-10-07 12:05:20 +02:00
allcontributors[bot]
12ee858eb7 docs: update CONTRIBUTORS.md 2023-10-07 12:05:20 +02:00
Fini Jastrow
1563df5bd7 lib: Clearly mark i_material as obsolete
[why]
The Material Design Icons moved codepoints around the Nerd Fonts v3
transition. In the latest v2.x releases both codepoint ranges were
present, and so we had the MD icons with different names and sets and
codepoints in two different i_*.sh files.

Since the old MD codepoints have been dropped the i_material.sh is not
actively used anymore - well, it is used to create the 'marked as
removed' entries in the cheat sheet.

That has not been properly documented here.

Reported-by: @midnightrocket:gitter.im
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-03 15:12:16 +02:00
Fini Jastrow
66c6d820a0 lib: Sort files mentioned in readme
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-10-03 15:11:23 +02:00
allcontributors[bot]
a8799f8260 docs: update .all-contributorsrc 2023-09-30 15:35:35 +02:00
allcontributors[bot]
2e8d4c9e33 docs: update CONTRIBUTORS.md 2023-09-30 15:35:35 +02:00
František Hanzlík
871dd80977 make patcher's readme wording slightly clearer 2023-09-30 15:35:21 +02:00
František Hanzlík
79c62aca27 fix readme alert syntax 2023-09-30 15:35:21 +02:00
František Hanzlík
ff08a1771a mention patcher family generation in readme 2023-09-30 15:35:21 +02:00
Fini Jastrow
090fbbeebe Sunset in-repo releases
[why]
We struggle with the pack-committing of patched fonts to the repository
on release. This makes our repo grow extremely big. It would be better
to just use release artifacts for the releases and not commit any
patched font back.
There were different approaches discussed, but the problem remains that
I personally have no rights to implement anything of that - neither can
I force push to the default branch, nor can I create new repos in the
organization.

[how]
To make it still possible to add new fonts without a repo size
explosion we do not release NEW fonts back to the repository as commits,
but old fonts are handled as before.
NEW fonts:
 * have a new property set in the fonts.yaml 'database'
 * are released as release artifact via release workflow (but not
   committed back)
 * get a readme in the patched_fonts/ directory that points to the
   release artifact page

The solution is not ideal, but for sure better than not adding any fonts
anymore or having the repo grow in size faster and faster.

At some point in time I would like to phase out all in-repo releases,
also for OLD fonts.

This scheme has been (manually) used / introduced for Intel One.
With this change the .gitignore file is automatically adapted to any new
font that is added with the repoRelease flag set to false (which should
be the default for any added font from now on).

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-09-27 11:20:36 +02:00
Fini Jastrow
e398a3847c install.sh: Honor XDG_DATA_HOME
[why]
When a user sets the XDG_DATA_HOME environment variable the default of
$HOME/.local/share should not be used.

https://wiki.archlinux.org/title/XDG_Base_Directory

[how]
Enable XDG_DATA_HOME to override the default user data directory on Unix
and MacOS platforms.

There is some controversy if XDG_DATA_HOME should be honored on MacOS,
see for example platformdirs (link below). But me also working on Linux
and MacOS (and Windows) in parallel, I can not quite follow the
downsides and believe we should allow XDG_DATA_HOME also for MacOS.

Related: https://github.com/platformdirs/platformdirs/issues/4
Fixes: #1324

Suggested-by: Anthony Foglia <@afoglia>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-09-27 06:04:14 +02:00
Finii
4b11f751a1 [ci] Update FontPatcher.zip 2023-09-27 03:49:13 +00:00
Fini Jastrow
2ce56141db name-parser: Unify quotes used for strings
[why]
We use single quotes everywhere else.
Keep this consistent.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-09-27 05:46:33 +02:00
Fini Jastrow
99688c40c7 font-patcher: Introduce weight check
[why]
Windows seems to construct the font names including the PS weight.
We have some sourcefonts that are broken (i.e. have in fact different
weights but have the same PS weight and/or OS2 weight.

That raises problems with the fonts on Windows.

[how]
Check and compare all weight metadata (except CID) and issue a warning
if they differ too much. That might fail with unusual weight names,
though.

See Issue #1333 and PR #1358.

Reported-by: LeoniePhiline
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-09-27 05:46:33 +02:00
allcontributors[bot]
35259124bd docs: update .all-contributorsrc 2023-09-27 05:22:54 +02:00
allcontributors[bot]
59b1a54103 docs: update CONTRIBUTORS.md 2023-09-27 05:22:54 +02:00