This repo contains Ansible role that installs fonts from the Google Fonts library to the target host system using Google Webfonts Helper service.
Following system packages are required and will be installed if needed:
- curl
- tar
- hosts: 127.0.0.1
roles:
- role: ansible-role-google-fonts
vars:
google_fonts_install_dir: '{{ ansible_env.HOME }}/.fonts'
google_fonts_download_formats: [ttf]
google_fonts_list:
- jetbrains-mono
- open-sans
- open-sans-condensed
- roboto
- roboto-condensed
- roboto-mono
- roboto-slab
- ubuntu
- ubuntu-condensed
- ubuntu-mono
-
Option 1 (recommended):
The following command will print all available font ids to a terminal.
curl https://gwfh.mranftl.com/api/fonts/ | jq -r ".[].id" | sort
⚠️ Note: command relies onjq
andcurl
packages that needs to be installed first. -
Option 2:
Find in raw JSON fonts list: https://gwfh.mranftl.com/api/fonts
👤 Alexander Danilenko
- Website: https://danilenko.in
- Github: @alexander-danilenko
- LinkedIn: @alexander-danilenko
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Mario Ranftl and all project contributors of the awesome Google Webfonts Helper!
Copyright © 2022 Alexander Danilenko.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator