hotfix/IO-2969-Fonts-For-Production - Register fonts
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
packages:
|
||||
dnf:
|
||||
fontconfig: []
|
||||
freetype: []
|
||||
google-noto-sans-fonts: [] # Google Noto fonts for wide language support
|
||||
dejavu-sans-fonts: [] # Common sans-serif fonts compatible with Chart.js
|
||||
liberation-fonts: [] # Another sans-serif fallback font collection
|
||||
|
||||
container_commands:
|
||||
01_install_montserrat:
|
||||
command: |
|
||||
cd /tmp
|
||||
curl -O https://fonts.google.com/download?family=Montserrat
|
||||
unzip Montserrat.zip -d /usr/share/fonts/montserrat
|
||||
fc-cache -fv # Rebuild the font cache to include Montserrat
|
||||
13
.platform/hooks/postdeploy/00-install-fonts.sh
Normal file
13
.platform/hooks/postdeploy/00-install-fonts.sh
Normal 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
|
||||
Reference in New Issue
Block a user