aboutsummaryrefslogtreecommitdiffstats
path: root/fonts
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-11-10 17:10:14 +0000
committerterminaldweller <thabogre@gmail.com>2022-11-10 17:10:14 +0000
commite28640ae5c679e57778a0bfc7772ea1ab59afdd7 (patch)
tree7e70a13d4dac5a5760f2aa9241e25ba4002f630b /fonts
parentupdate (diff)
downloadscripts-e28640ae5c679e57778a0bfc7772ea1ab59afdd7.tar.gz
scripts-e28640ae5c679e57778a0bfc7772ea1ab59afdd7.zip
update
Diffstat (limited to '')
-rwxr-xr-xfonts/patch_dejavusansmono.sh40
1 files changed, 40 insertions, 0 deletions
diff --git a/fonts/patch_dejavusansmono.sh b/fonts/patch_dejavusansmono.sh
new file mode 100755
index 0000000..f376e29
--- /dev/null
+++ b/fonts/patch_dejavusansmono.sh
@@ -0,0 +1,40 @@
+#!/usr/bin/env bash
+set -ex
+
+FONT_PATCHER=./font-patcher
+OPTIONS="--adjust-line-height \
+--fontawesome \
+--fontawesomeextension \
+--fontlogos \
+--octicons \
+--codicons \
+--powersymbols \
+--pomicons \
+--powerline \
+--powerlineextra \
+--weather \
+--variable-width-glyphs \
+--careful"
+
+FONT_LIST=("./dejavu-fonts-ttf-2.37/ttf/DejaVuSansMono.ttf" "./dejavu-fonts-ttf-2.37/ttf/DejaVuSansMono-BoldOblique.ttf" "./dejavu-fonts-ttf-2.37/ttf/DejaVuSansMono-Oblique.ttf" "./dejavu-fonts-ttf-2.37/ttf/DejaVuSansMono-Bold.ttf")
+
+for FONT in ${FONT_LIST[@]};do
+ ${FONT_PATCHER} ${OPTIONS} ${FONT}
+done
+
+mv DejaVu\ Sans\ Mono\ Bold\ Nerd\ Font\ Plus\ Font\ Awesome\ Plus\ Font\ Awesome\ Extension\ Plus\ Octicons\ Plus\ Power\ Symbols\ Plus\ Codicons\ Plus\ Pomicons\ Plus\ Font\ Logos\ Plus\ Weather\ Icons.ttf DejaVuSansMonoNerdBold.ttf
+mv DejaVu\ Sans\ Mono\ Bold\ Oblique\ Nerd\ Font\ Plus\ Font\ Awesome\ Plus\ Font\ Awesome\ Extension\ Plus\ Octicons\ Plus\ Power\ Symbols\ Plus\ Codicons\ Plus\ Pomicons\ Plus\ Font\ Logos\ Plus\ Weather\ Icons.ttf DejaVuSansMonoNerdBoldOblique.ttf
+mv DejaVu\ Sans\ Mono\ Nerd\ Font\ Plus\ Font\ Awesome\ Plus\ Font\ Awesome\ Extension\ Plus\ Octicons\ Plus\ Power\ Symbols\ Plus\ Codicons\ Plus\ Pomicons\ Plus\ Font\ Logos\ Plus\ Weather\ Icons.ttf DejaVuSansMonoNerdNormal.ttf
+mv DejaVu\ Sans\ Mono\ Oblique\ Nerd\ Font\ Plus\ Font\ Awesome\ Plus\ Font\ Awesome\ Extension\ Plus\ Octicons\ Plus\ Power\ Symbols\ Plus\ Codicons\ Plus\ Pomicons\ Plus\ Font\ Logos\ Plus\ Weather\ Icons.ttf DejaVuSansMonoNerdOblique.ttf
+
+# mv 'DejaVu Sans Mono Bold Nerd Font Plus Font Awesome Plus Font Awesome Extension Plus Octicons Plus Power Symbols Plus Codicons Plus Pomicons Plus Font Logos Plus Weather Icons Mono.ttf' DejaVuSansMonoNerdBold.ttf
+# mv 'DejaVu Sans Mono Bold Oblique Nerd Font Plus Font Awesome Plus Font Awesome Extension Plus Octicons Plus Power Symbols Plus Codicons Plus Pomicons Plus Font Logos Plus Weather Icons Mono.ttf' DejaVuSansMonoNerdBoldOblique.ttf
+# mv 'DejaVu Sans Mono Nerd Font Plus Font Awesome Plus Font Awesome Extension Plus Octicons Plus Power Symbols Plus Codicons Plus Pomicons Plus Font Logos Plus Weather Icons Mono.ttf' DejaVuSansMonoNerdNormal.ttf
+# mv 'DejaVu Sans Mono Oblique Nerd Font Plus Font Awesome Plus Font Awesome Extension Plus Octicons Plus Power Symbols Plus Codicons Plus Pomicons Plus Font Logos Plus Weather Icons Mono.ttf' DejaVuSansMonoNerdOblique.ttf
+
+sudo cp ./DejaVuSansMonoNerdBold.ttf /usr/share/fonts/TTF/
+sudo cp ./DejaVuSansMonoNerdBoldOblique.ttf /usr/share/fonts/TTF/
+sudo cp ./DejaVuSansMonoNerdNormal.ttf /usr/share/fonts/TTF/
+sudo cp ./DejaVuSansMonoNerdOblique.ttf /usr/share/fonts/TTF/
+
+sudo fc-cache -fv