Skip to content

Own Fonts #146

@MeisterAdebar

Description

@MeisterAdebar

Hi,

  1. Create a folder for custom fonts

mkdir -p /usr/share/fonts/TTF

  1. 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.

  1. Update the font cache

fc-cache -fv

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions