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
Hi,
mkdir -p /usr/share/fonts/TTFEither 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.
fc-cache -fvdocker restart fewohbee-dockerized-php-1Question: Is this the correct approach for adding custom fonts inside the container, or is there an easier way?
Thomas