Download fonts directly from the Internet

This commit is contained in:
Anthony Rose 2022-02-18 15:25:18 +00:00
parent 64229ffe2f
commit 71a053c8ba

View file

@ -19,16 +19,17 @@
state: directory
- name: Extract TeX Gyre fonts
ansible.builtin.unarchive:
src: tg2_501otf.zip
remote_src: yes
src: "http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg2_501otf.zip"
dest: "{{ ansible_env.HOME }}/.local/share/fonts/texgyre"
creates: "{{ ansible_env.HOME }}/.local/share/fonts/texgyre/tg2_501otf/texgyretermes-regular.otf"
- name: Create ~/.local/share/fonts/iosevka directory
ansible.builtin.file:
path: "{{ ansible_env.HOME }}/.local/share/fonts/iosevka"
state: directory
- name: Extract Iosevka fonts
ansible.builtin.unarchive:
src: super-ttc-iosevka-14.0.0.zip
remote_src: yes
src: "https://github.com/be5invis/Iosevka/releases/download/v14.0.0/super-ttc-iosevka-14.0.0.zip"
dest: "{{ ansible_env.HOME }}/.local/share/fonts/iosevka"
creates: "{{ ansible_env.HOME }}/.local/share/fonts/iosevka/iosevka.ttc"