Set Fonts

  • I need to provide the fonts path in the config file which i dont see any options for that.
    Please provide me the support for the above query.

  • Please elaborate more....
    What config file do you mean? Why do you need to put a font path to the config file?

  • I am using an html which has nunito fonts which is not reflected after generating as pdf in docker usind nodejs client.
    So i placed the fonts file in code and imported them. But docker path of the fonts should be set somewhere in the request like entensions.
    I think this helps to solve the problem.
    Thank you

  • i think you are mentioning assets right?
    and i am using nodejs-client module. Is there any way to import the fonts path to render.
    please provide the exact solution

  • I mean you can link the fonts from a web URL like in the example

            <link rel="preconnect" href="">
            <link rel="preconnect" href="" crossorigin>
            <link href=";900;1000&display=swap" rel="stylesheet">
            <h1 style='font-family:Nunito'>
                Hello world

  • We tried that too. But we get 403 in that font urls.
    Could you please suggest me any other alternatives

Log in to reply

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.