Waveshare Epaper Dashboard
Font
Replace the default font used on the display.
The default font is set to sans-serif which on a Raspberry Pi defaults to DejaVu Sans. It's a decent font, wide, and visible, and works for most western languages.
In this example I'll replace it with Noto Sans. You can do this with whichever font you prefer.
First run this command to show the current font being used.
$ fc-match sans-serif
DejaVuSans.ttf: "DejaVu Sans" "Book"
Install Noto fonts.
sudo apt install fonts-noto
Now create a font config file if it doesn't already exist.
mkdir -p ~/.config/fontconfig/conf.d
nano ~/.config/fontconfig/conf.d/00-fonts.conf
Set the contents of the 00-fonts.conf file:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
</prefer>
</alias>
</fontconfig>
This tells the system to prefer 'Noto Sans' if the 'sans-serif' family is requested. You can test it by running:
$ fc-match sans-serif
NotoSans-Regular.ttf: "Noto Sans" "Regular"
The next time run.sh runs, the output image should have the chosen font.