How can I install a font on the server?

Hello!

I need to install a font in the server to use with wkhtmltopdf library. I can’t use the font without install because in this case wkhtmltopdf library create the pdf with the text rendered like a shape. Not like text. I need to install the font in the system.
I am trying to mount a folder in fonts directory (/usr/share/fonts/truetype/) and copy the font file but It doesn’t work.

I don’t know how I can to do it.

Thanks for your help :slight_smile:

0

Comments

3 comments
Date Votes
  • Hi @pablo-blanco
    did you to try install it using apt-get during the build hook?

    hooks:
      build: |
        apt-get install fonts-liberation
    -1
  • Thank you for your message. I try it and the console says:

    apt-get: not found

    Do you know what is the problem?

    0
  • Hi @flovntp

    I can’t use apt-get. Console show me an error. Do you know how I can do it? Thanks.

    0

Please sign in to leave a comment.

 

Didn't find what you were looking for?

New post