Skip to content
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.

How to use fonts in options parameter. #243

Open
mtcanada opened this issue Feb 24, 2020 · 3 comments
Open

How to use fonts in options parameter. #243

mtcanada opened this issue Feb 24, 2020 · 3 comments

Comments

@mtcanada
Copy link

By default, the font for the text is 'serif', but i would like to use 'san-serif' font. How should I do it? i don't know what to use for text. url and format parameter for the parameter since there is no sample.

@exupero
Copy link
Owner

exupero commented Feb 24, 2020

Use regular CSS to change the font. The fonts option is for webfonts, which you shouldn't need just to get a sans serif font in your output image.

@mkpasala
Copy link

mkpasala commented Apr 1, 2020

its better to add the syntax of all the options available for the saveimageasPNG.js so that users can easily understand and use it.
I want to add 'Titillium Web' fonts to my downloading file, how can i do that?
Please help me.

@andrius-386
Copy link

Hi @mkpasala.
Yes, fonts section could have more examples. I've added example for Google fonts that worked for me: #240 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants