This commit is contained in:
Daniel Ziltener 2023-12-19 02:48:35 +01:00
parent f725871b48
commit c5f637e923
2 changed files with 29 additions and 1 deletions

View file

@ -147,7 +147,8 @@
:ensure t :ensure t
:custom :custom
(org-babel-load-languages '((emacs-lisp . t) (org-babel-load-languages '((emacs-lisp . t)
(scheme . t))) (scheme . t)
(shell . t)))
(visual-fill-column-center-text t) (visual-fill-column-center-text t)
:hook :hook
(org-mode . org-indent-mode) (org-mode . org-indent-mode)

View file

@ -0,0 +1,27 @@
#+TITLE: Font Forge Scripts
#+AUTHOR: Daniel Ziltener
* Direnv File
#+begin_src fundamental :eval no :tangle .envrc
use guix python python-wrapper fontforge curl unzip
#+end_src
* Nerd Font Patching
As preparation, we need the font patcher:
#+begin_src bash :results none :shebang #!/usr/bin/env bash
tmp=$(mktemp)
trap "rm -rf '$tmp'" exit
curl -L https://github.com/ryanoasis/nerd-fonts/releases/latest/download/FontPatcher.zip > $tmp
unzip $tmp
#+end_src
** Patching Libertinus
#+begin_src bash :results none :shebang #!/usr/bin/env bash
curl -L https://github.com/alerque/libertinus/releases/download/v7.040/Libertinus-7.040.tar.xz | tar xJ
ln -sf Libertinus-7.040/static/OTF/* .
find . -name 'LibertinusSerif*.otf' -print0 | xargs -0 -IX -- direnv exec $PWD/font-patcher X -c --variable-width-glyphs --no-progressbars
#+end_src