-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hi,
- Create a folder for custom fonts
mkdir -p /usr/share/fonts/TTF
- Upload the font
Either via docker cp from the host:
docker cp MyFont.ttf fewohbee-dockerized-php-1:/usr/share/fonts/TTF/
Or inside the container using wget/curl if the font is available online.
- Update the font cache
fc-cache -fv
- Restart the container (so that wkhtmltopdf recognizes the new font)
docker restart fewohbee-dockerized-php-1
Question: Is this the correct approach for adding custom fonts inside the container, or is there an easier way?
Thomas
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels