Commit graph

2465 commits

Author SHA1 Message Date
Finii
86f1713570 [ci] Update FontPatcher.zip 2023-11-21 06:01:22 +00:00
Fini Jastrow
4c82de8eb8 doc: Remove ancient (out of date) preview fragments
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-21 06:58:45 +01:00
hasecilu
7940f26928 Update Font Logos to 1.1.1
[why]
The font-logos project has been updated including 67 new icons, in which
are included GNU/Linux distributions, desktop environments, window
managers, desktop applications, some organizations and more.

Now the used range is F300-F372, 115 available logos.
2023-11-21 06:58:45 +01:00
Finii
8c55bba829 [ci] Update .gitignore file 2023-11-19 21:51:35 +00:00
Fini Jastrow
f4e5cabcc2 Monaspace: Add preview link
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-19 22:49:09 +01:00
Finii
9326915202 [ci] Update FontPatcher.zip 2023-11-19 21:29:50 +00:00
Fini Jastrow
1b7679ebc7 Monaspace: Small forgotten changes
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-19 22:22:11 +01:00
Finii
55fc87047b [ci] Update .gitignore file 2023-11-19 21:10:07 +00:00
Fini
5d999cd571
Merge pull request #1405 from julien-blanchon/add-github-monaspace
Add Githubnext Monaspace
2023-11-19 22:07:42 +01:00
Fini Jastrow
c56530c874 Finalize replacement name of Monaspace
After the working draft name Monispace the final patched font name will
be Monaspice.

* It keeps the characteristic `Mona` in the beginning
* It changes just one character
* The replacement is still a real word
* The replacements sounds very similar

Also other very good names have been suggested, thank you all for the
input!

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-19 22:06:56 +01:00
Finii
1f83dad386 [ci] Update FontPatcher.zip 2023-11-16 17:51:52 +00:00
Fini
307e2ad9bf
Merge pull request #1419 from ryanoasis/bugfix/powerline-glyph-overlap
Increase Powerline glyph overlap
2023-11-16 18:49:21 +01:00
Fini Jastrow
a8b9e1da06 Increase Powerline overlap (only triangle)
[why]
We still fight with the faint lines on the big side of the powerline
glyphs. They come from the LCD antialiasing mode that has problems with
the borders.

Other fonts use far more overlap. We use only a modest amount of overlap
(2% of the width).

[how]
As the other fonts do, increase the overlap (to 7% now). We could not do
that before, because we had no full-hight 'landing platforms' on the
outsides and so the triangle would look cut off at not 100% hight.

Now with the landing platforms we can increase the overlap and still
have nice looking triangles that visibly reach the top and bottom of the
line.

Implement this only for the filled triangles to see how it goes.

Related: #1245

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-16 18:35:53 +01:00
Fini Jastrow
e75fc6d7d7 Simplify Waveform glyphs
[why]
The waveform glyphs E0C8 and E0CA have an incredable amount of points
and rendering is rather expensive.

It turned out that it has a hairline ourline, that will be invisible
anyhow.

[how]
Remove the Hairline, reducing the number of points to 1/3.

[note]
See #1245

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-16 18:10:09 +01:00
Fini
30e8c31ad6
Merge pull request #1416 from dnoice/patch-1
Update nerd-fonts-generated.css
2023-11-16 17:46:37 +01:00
Finii
aff975187c [ci] Update .gitignore file 2023-11-16 16:46:20 +00:00
Fini Jastrow
b13b0e1d96 Cascadia Mono: Finishing touches
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-16 17:43:52 +01:00
Fini Jastrow
baa690e785 Cascadia Mono: Rehint
CascadiaCode: Rehint and use ttf

[why]
A lot people (read: People on Windows) have the variable font (VF) version of
Cascadia Mono installed - it comes bundled with Windows Terminal.

The static Cascadia Mono instances that Microsoft releases are hinted
with ttfautohint which creates small sized glyphs that are visibly very
different. People compare the static Caskaydia Mono with the VF Cascadia
Mono and are surprised.

[how]
We need to re-hint all the fonts, to get hints that are comparable
to the VF hints. We can not use the hints of the VF because the outlines
are different: The VF has (of course) overlapping outlines, while the
static ones (as usual) have not.

The re-hinting can be done with VTT or TTH - both showed results that
are more like the original VF font. The usual ttfautohint has been used
of the static fonts in the font release and can not be used. It is the
reason for this whole problem.

* Used VTT 6.35
* Open font file in VTT
* Import all programs
* Generate 'VTT talk' via Tools -> AutoHint -> LightLatinAutoHint
* Save font file as ...

References:
https://github.com/microsoft/cascadia-code/issues/371
https://learn.microsoft.com/en-us/typography/tools/vtt/

See also commit
  b6301e5 CascadiaCode: Rehint and use ttf

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-16 17:43:52 +01:00
Fini Jastrow
b7e9e5f445 WIP: Add Cascadia Mono
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-16 17:43:52 +01:00
Fini Jastrow
477a0eb2ee css: Correct 'speak' change location
This reverts commit b1d437b122.
Because that changed a generated file.

The generator is changed instead with the changes added here.
2023-11-14 13:40:11 +01:00
Dennis
b1d437b122
Update nerd-fonts-generated.css
The speak property is not widely supported and is currently not a standard property. If you're using it to prevent screen readers from reading certain elements, a more standard approach is to use the aria-hidden="true" attribute in your HTML.

This will hide the span with the class nf from screen readers. This is a more widely supported and standard way of controlling how screen readers interact with your elements.
2023-11-14 04:21:35 -08:00
Fini Jastrow
d84e7bcecf fonts.json: Fix small syntactic divergence
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 17:52:42 +01:00
Fini Jastrow
7a1e163d2a doc: Update changelog
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 17:47:18 +01:00
Fini Jastrow
26f3d0ecc4 generate-font-image-previews: Fix warning
in generate-font-image-previews.sh line 22:
    if [ "$imagePreviewFont" != "$patchedName Nerd Font" -a "$imagePreviewFont" != "$patchedName NF" ]; then
                                                         ^-- SC2166 (warning): Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.

For more information:
  https://www.shellcheck.net/wiki/SC2166 -- Prefer [ p ] && [ q ] as [ p -a q...

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 17:36:37 +01:00
Finii
9ed4f3405d [ci] Update .gitignore file 2023-11-13 16:33:43 +00:00
Fini Jastrow
5972beffe2 Add D2Coding
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 17:31:14 +01:00
Finii
0ec768691a [ci] Update .gitignore file 2023-11-13 16:19:35 +00:00
Fini Jastrow
6fdde00776 Add CommitMono
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 17:16:40 +01:00
Finii
0e961c1100 [ci] Update .gitignore file 2023-11-13 14:47:40 +00:00
Fini Jastrow
b33cf53bd9 generate-font-image-previews: Allow from shortened name
[why]
When we changed the naming for Visual Studio all the name entries use a
shortened name if the font needs the shortened name for the ID1/2
names.

This means sometimes the family name ends in NF and there is no
differing (long) family name anymore.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 15:37:29 +01:00
Fini Jastrow
9f03f35490 fonts.json: Fix some wrong entries
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 15:37:29 +01:00
Fini Jastrow
529ca23e67 generate-font-image-previews: Add new fonts
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 14:52:43 +01:00
Fini Jastrow
406078e819 Begin writing 3.1.0 release notes (WIP)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 13:05:51 +01:00
Finii
67d5b56ac4 [ci] Update .gitignore file 2023-11-13 11:14:03 +00:00
Fini
c48942dde0
Merge pull request #803 from ryanoasis/feature/Add-Iosevka-Term-Slab
Add Iosevka Term Slab
2023-11-13 12:11:39 +01:00
Fini Jastrow
154edc0e9b Iosevka Term Slab: Correct release mechanism
[why]
New fonts do not get a in-repo release anymore.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 12:10:32 +01:00
Fini Jastrow
2198da4a5d Iosevka Term Slab: Reduce number of weights
[why]
We have a lot of weights, probably not all useful for terminal usages.

[how]
Use more current fetching script and limit number of weights.
Also drop the directory substructure.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-13 12:03:06 +01:00
allcontributors[bot]
9f51810c82 docs: update .all-contributorsrc 2023-11-12 00:34:19 +01:00
allcontributors[bot]
d95c9e63db docs: update CONTRIBUTORS.md 2023-11-12 00:34:19 +01:00
Fini Jastrow
6e21392fa3 doc: add skryukov as a contributor for code
Somehow the allcontributors thing failed

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-12 00:30:04 +01:00
allcontributors[bot]
6aef8cf4e9 docs: update .all-contributorsrc 2023-11-12 00:15:49 +01:00
allcontributors[bot]
53e0765b38 docs: update CONTRIBUTORS.md 2023-11-12 00:15:49 +01:00
Finii
809944cbbe [ci] Update FontPatcher.zip 2023-11-11 23:11:26 +00:00
Fini
61ab5c0739
Merge pull request #1406 from ryanoasis/bugfix/visualstudio2022
Bugfix for Visual Studio 2022
2023-11-12 00:09:13 +01:00
Fini Jastrow
784e892575 name-parser: Revert file name change
[why]
It is better to have a not-abbreviated file name so that one can make
sense out of the name parts, especially when doing a partial patch.
With the previous commit we ended up with all abbreviated names.

The filename length is hopefully not limited, at least not as severe as
the SFNT table entries.

[how]
We need to store the answers somewhere because the naming is only
understood by the FontnameParser object which we throw away soon.
As fallback we still can parse the SFNT table, for example when the old
renaming is used.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-11 23:59:59 +01:00
Fini Jastrow
d3ee35db8e 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

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-11 23:59:07 +01:00
Fini Jastrow
4579b496ef Martian: Tweak naming
[why]
With Martian Mono we have a font that uses aggressive abbreviation for
the weights and styles (two letters mostly) in all name fields. That is
very hard to parse.

[how]
We rewrite the filenames such that it contains all the necessary information
and use the new patcher flag use the filename as naming source.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-11 23:57:02 +01:00
Fini Jastrow
178cda0629 font-patcher: Allow filename as naming source
[why]
With Martian Mono we have a font that uses aggressive abbreviation for
the weights and styles (two letters mostly) in all name fields. That is
very hard to parse.

[how]
Adding rules that detect these very short abbreviations might trigger in
a lot wrong places. As this is the only font that uses that we do not
want to risk that.

Instead we rewrite the filenames of the source font (Martian Mono) such
that it contains all the necessary information and add a new flag to the
patcher that allows it to use the filename as naming source.
Yes, as in days long past ;-)

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-11 23:57:02 +01:00
Fini Jastrow
693ac495b3 Martian: Drop many weights and adapt paths
SemiWide and Narrow might be nice in some contexts, but that is not
really the audience of Nerd Fonts I guess.

Lets start with few and we can always add more if there is really a
demand.

Simplify the paths; the old style stems from the time when we patched
all variants per source font. Nowerdays the fonts are few (3 per source)
and will almost always be installed together anyhow.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-11 23:57:02 +01:00
Fini Jastrow
e5447baed1 Martian: Fix docs
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2023-11-11 23:57:02 +01:00