aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/fontconfig/bitmaps.pp
blob: 56df258b1b31ea01a0b599bf7f0d42533f748b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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'],
  }
}