Skip to content

Commit

Permalink
fix(fonts): allow locally hosted fonts in a dir
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-de-bock committed May 26, 2023
1 parent f0dc069 commit bbcc6a6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions molecule/default/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
family: source-sans
- src: EA Sports Covers SC 1.5.ttf
family: my_fonts
- src: fonts/Example.ttf
family: my_examples
potos_libreoffice_palettes:
- name: dracula.soc
url: "https://raw.githubusercontent.com/dracula/libreoffice/master/dracula.soc"
Binary file added molecule/default/files/fonts/Example.ttf
Binary file not shown.
7 changes: 4 additions & 3 deletions molecule/default/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
- name: Check if fonts are available
ansible.builtin.assert:
that:
- "'SourceSans3-Regular.ttf' in libreoffice_available_fonts.stdout"
- "'OpenSans-Regular.ttf' in libreoffice_available_fonts.stdout"
- "'EA Sports Covers SC 1.5.ttf' in libreoffice_available_fonts.stdout"
- "'source-sans/SourceSans3-Regular.ttf' in libreoffice_available_fonts.stdout"
- "'open-sans/OpenSans-Regular.ttf' in libreoffice_available_fonts.stdout"
- "'my_fonts/EA Sports Covers SC 1.5.ttf' in libreoffice_available_fonts.stdout"
- "'my_examples/Example.ttf' in libreoffice_available_fonts.stdout"
quiet: yes
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
- name: Install font from src
ansible.builtin.copy:
src: "{{ item.src }}"
dest: "{{ potos_libreoffice_font_directory }}/{{ item.family | default('') }}/{{ item.src }}"
dest: "{{ potos_libreoffice_font_directory }}/{{ item.family | default('') }}/{{ item.src | basename }}"
owner: root
group: root
mode: 0644
Expand Down

0 comments on commit bbcc6a6

Please sign in to comment.