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

panic: not found font family #9

Open
dxdns opened this issue Sep 29, 2022 · 2 comments
Open

panic: not found font family #9

dxdns opened this issue Sep 29, 2022 · 2 comments

Comments

@dxdns
Copy link

dxdns commented Sep 29, 2022

Good job, this package looks good, but i can't use it.
Trying the simple example from the documentation. How to solve this problem?

@mikeshimura
Copy link
Owner

font setting is as follows

font1 := gr.FontMap{
FontName: "IPAex",
FileName: "ttf//ipaexg.ttf",
}

do you have file ipaexg.ttf in ttf directory?
if you use Font other than IPAex, you should add your own font file and set in FontMap.

@dxdns
Copy link
Author

dxdns commented Sep 30, 2022

yes, I downloaded the source from your repository and declared it as in the example. https://github.com/mikeshimura/goreport/blob/master/example/simple1.go
just switched to main package to run

font setting is as follows

font1 := gr.FontMap{ FontName: "IPAex", FileName: "ttf//ipaexg.ttf", }

do you have file ipaexg.ttf in ttf directory? if you use Font other than IPAex, you should add your own font file and set in FontMap.

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

2 participants