Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add font family #35

Closed
yuniit opened this issue Feb 8, 2021 · 4 comments
Closed

Add font family #35

yuniit opened this issue Feb 8, 2021 · 4 comments

Comments

@yuniit
Copy link

yuniit commented Feb 8, 2021

Hello,
How can I add font-family to print content I've tried :

   {
       type: 'text',
       value: 'Company Name',
       style: `text-align:center; font-size: 20px; margin: 0; padding-bottom: 10px;`,
       css: { 'font-family': 'Bahnschrift' },
    },

But after print I got default font family.
Please correct me if i am wrong. Thank

@xjuanc
Copy link

xjuanc commented Apr 24, 2021

I'm wondering the same, have you found a way?

@yuniit
Copy link
Author

yuniit commented Apr 26, 2021

@xjuanc I just add font-face to my css and it worked.

@Hubertformin
Copy link
Owner

I am glad it worked for you!

@MadhabaPatra
Copy link

@xjuanc I just add font-face to my css and it worked.

can you please elaborate or send the exact code here , thank you

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

No branches or pull requests

4 participants