diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2022-02-18 09:48:09 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2022-02-18 09:48:09 -0300 |
commit | 3922c9fbe71bbec6ecf80d8757b2243a9b5c411b (patch) | |
tree | a0851d5bd76c297984260f8ec4b1d9525b91a319 /manifests/subsystem/fontconfig | |
parent | 081a41af93a75504fb91e16bc9b60be48a4864a9 (diff) | |
download | puppet-nodo-3922c9fbe71bbec6ecf80d8757b2243a9b5c411b.tar.gz puppet-nodo-3922c9fbe71bbec6ecf80d8757b2243a9b5c411b.tar.bz2 |
Feat: adds fontconfig subsystem
Diffstat (limited to 'manifests/subsystem/fontconfig')
-rw-r--r-- | manifests/subsystem/fontconfig/bitmaps.pp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/manifests/subsystem/fontconfig/bitmaps.pp b/manifests/subsystem/fontconfig/bitmaps.pp new file mode 100644 index 0000000..56df258 --- /dev/null +++ b/manifests/subsystem/fontconfig/bitmaps.pp @@ -0,0 +1,26 @@ +# +# Enable bitmap fonts, fixing some rendering issues with terminus and other fonts. +# +# https://unix.stackexchange.com/a/118665 +# https://www.pixelbeat.org/docs/fc_fixed.html +# https://powerline.readthedocs.io/en/master/troubleshooting/linux.html +# +class nodo::subsystem::fontconfig::bitmaps inherits nodo::subsystem::fontconfig { + + file { '/etc/fonts/conf.d/70-yes-bitmaps.conf': + ensure => '/usr/share/fontconfig/conf.avail/70-yes-bitmaps.conf', + owner => 'root', + group => 'root', + require => Package['fontconfig'], + } + + file { '/etc/fonts/conf.d/70-no-bitmaps.conf': + ensure => absent, + require => Package['fontconfig'], + } + + Exec['fontconfig-reconfigure'] { + subscribe => File['/etc/fonts/conf.d/70-yes-bitmaps.conf', + '/etc/fonts/conf.d/70-no-bitmaps.conf'], + } +} |