Commit graph

3227 commits

Author SHA1 Message Date
Fini Jastrow ed952eb41c fc_install: Replace stat with portable wc
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 00:22:13 +02:00
Fini Jastrow 74e2121584 fc_install: Make inherit_errexit optional
Bash v3 does not have this option and no equivalent

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-04 00:22:13 +02:00
Fini Jastrow 939486b7bf fc_install: Replace echo -e with portable printf
for Mac for example

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 23:54:28 +02:00
Fini Jastrow e2181b5aab fc_install: Run shfmt -i 4 -w
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 23:14:32 +02:00
Fini Jastrow fb8391314d fc_install: Suppress some specific shellcheck warnings
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 23:05:24 +02:00
Fini Jastrow a48c26daac fc_install: Remove bash array usage
To enable bash 3 use

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 22:49:31 +02:00
Fini Jastrow 37cf5364af fc_install: Output "info" with green
to better distinguish from debug

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 22:49:31 +02:00
Fini Jastrow 5663778d3b fc_install: Use regex for font file type selection
Avoid bash 4 arrays

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 22:49:31 +02:00
Fini Jastrow 21e589a40c fc_install: Cache asset ID list
This helps if multiple fonts are installed at once, i.e. 'all'

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 21:32:33 +02:00
Fini Jastrow 42d7ace109 fc_install: Prefer [...] over [[...]]
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 21:08:09 +02:00
Fini Jastrow 428d713e24 fc_install: Asset list without \0
When we want to cache the information we can not use strings with
embedded zero characters.

Instead we use vertical bar as separator and know that neither the name
nor the asset number can contain blanks.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 21:06:23 +02:00
Fini Jastrow e0bd379b8d fc_install: Fix color determination code
The code is not a function, but apprease amoung functions making it a
bit out of place. So we move it down to the actual start after all
function definitions.

Additionally the 'are we connected to a pipe?' code is not working. Use
`test -t` instead of `test -p`.

Additionally check against stderr, not stdout, because all color ends on
stderr. See [1].

Additionally check for dump terminal and the usual NO_COLOR (also see [1]).

[1] https://clig.dev

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 20:46:32 +02:00
Fini Jastrow bb6ae89ac2 fc_install: Expose script and bash versions (for debugging user screenshots)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 20:14:06 +02:00
Fini Jastrow acd0b490af fc_install: Enable shellcheck SC2250
This is very subjective, but I like this a lot more.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 20:05:48 +02:00
Fini Jastrow b0137be3b7 fc_install: Fix shellcheck warnings
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 19:29:16 +02:00
Fini Jastrow 2abb0b7ab1 fc_install: Switch to .tar.xz archives
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow b5ea9ed785 fc_install: Fix nullbyte warning
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow da6d7d80f2 fc_install: Install by asset ID
This allows for example unreleased downloads etc

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 40c6a2b718 fc_install: Update fc-cache also on removal
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow f9e794dfbf fc_install: More comments
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 523a8e1b44 fc-install: Fix: Allow Mac and XDG
wrong indentation

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 38868a0092 fc_install: Fix single font install
this has been broken already with the initial PR.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 2fa9b7ffac fc_install: Replace test == with =
The == operator is for [[ ]] only

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow d9e8120472 fc-install: Correct and add error messages
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow fe14bb3b21 fc_install: Allow to specify Github token
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow d2ac674146 fc_install: Fix spurious bad output
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 3d80f94838 fc_install: Add dependencies
Already add tar, because we will need it later on.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 2b211fb430 fc_install: Remove FontPatcher.zip from fonts list
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow ad2359a6c3 fc_install: Make help the default command
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow a33bad2e4c fc-install: Modify comments
Also clean up $0 output.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 21f732211e fc-install: Allow Mac and XDG
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Fini Jastrow 0933f6d921 fc-install: Drop hard fc-cache dependency
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-03 15:06:36 +02:00
Markus Heiser aee2a637c9 [mod] fc_install: font config installer for the nerd-fonts 2026-09-03 15:06:36 +02:00
allcontributors[bot] 0faaeb3657
docs: add chrisemke as a contributor for doc (#2070)
Some checks failed
Update contributors / Update gh-pages contributors (push) Has been cancelled
Update gitignore and gh-pages / sync_pages (push) Has been cancelled
Update gitignore and gh-pages / update_gitignore (push) Has been cancelled
* docs: update CONTRIBUTORS.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2026-09-01 23:57:24 +02:00
Fini Jastrow 64a084f954 OpenDyslexic: Correct upstream and version info
Related: #2067

Reported-by: Krisque <chrisemke@protonmail.com>
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-09-01 23:54:46 +02:00
Finii 73e5da3b33 [ci] Update FontPatcher.zip
Some checks failed
PackSVGs / create-symbols-font (push) Failing after 0s
Update contributors / Update gh-pages contributors (push) Has been cancelled
Docker release / Publish image (push) Has been cancelled
Update gitignore and gh-pages / sync_pages (push) Has been cancelled
Update gitignore and gh-pages / update_gitignore (push) Has been cancelled
Create FontPatcher.zip / build (push) Has been cancelled
2026-08-22 10:22:15 +00:00
Fini Jastrow 50d375afcd font-patcher: Fix progressbars
[why]
There were again multiple lines for some glyph sets, where the patching
happens in chunks. I thought I fixed that (having only one line/bar per
glyph set) but obviously that is broken.

[how]
Move the output of the line break - that happens on the start of a new
set - to the correct position.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-22 12:15:21 +02:00
Fini Jastrow b894ea7803 [ci] Update FontPatcher.zip (replay failed ci)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 16:14:43 +02:00
Fini Jastrow a942782739 [ci] Regenerate CSS files (replay failed ci)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 15:58:33 +02:00
Fini Jastrow 895c19593a [ci] Regenerate fontconfig (replay failed ci)
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 15:56:02 +02:00
Fini Jastrow 7cb8608f99 Remove empty patched-fonts directories
We flattened the {un,}patched-fonts directory structure.

But purging the destination directory with the new gotta-patch-em
option did not clean all up, so do it manually now.

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 15:49:33 +02:00
Finii f034eeafc0 [ci] Rebuild patched fonts 2026-08-21 10:35:37 +00:00
Finii 04c4c4ee07 [ci] Bump release version 2026-08-21 10:32:33 +00:00
Fini Jastrow 776a192283 Trigger Release 3.5.1
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 09:47:13 +02:00
Fini Jastrow a08167910c Fix: VictorMono: Flatten directory structure
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 09:39:59 +02:00
Fini Jastrow 5c68be9ada Overpass: Flatten directory structure
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 09:37:38 +02:00
Fini Jastrow eca7452fb9 Meslo: Flatten directory structure
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 09:33:13 +02:00
Fini Jastrow e2753e092c iA-Writer: Flatten directory structure
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 09:22:22 +02:00
Fini Jastrow da9a0de4f0 IBMPlexMono: Flatten directory structure
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 09:18:14 +02:00
Fini Jastrow b51bb186c1 3270: Flatten directory structure
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2026-08-21 09:15:11 +02:00