hotfix/IO-2969-Fonts-For-Production - Register fonts

Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
Dave Richer
2024-09-27 19:29:26 -04:00
parent c5b19d8f22
commit 5b00ded5f6
2 changed files with 13 additions and 15 deletions

View File

@@ -0,0 +1,13 @@
#!/bin/bash
# Install fonts using dnf
dnf install -y fontconfig freetype google-noto-sans-fonts dejavu-sans-fonts liberation-fonts
# Download and install Montserrat font
cd /tmp
curl -O https://fonts.google.com/download?family=Montserrat
unzip Montserrat.zip -d /usr/share/fonts/montserrat
fc-cache -fv # Rebuild font cache to include Montserrat
# Ensure permissions are correct
chmod -R 755 /usr/share/fonts/montserrat