-
Notifications
You must be signed in to change notification settings - Fork 61
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
Output blank png image when use custom font family in windows #80
Comments
|
I am having the same problem -- using the linux build of freeze from inside wsl2 on windows 11 -- trying to specify |
Same for me in Ubuntu 22.04 |
I'm getting this on mac as well. It looks like the font config is not actually considered on this line: Line 50 in 578e9d0
I've had a quick play to see if I can hard code another font file but its not working. Must be more at play here. I'll make do with default font for now as I don't have more time |
Came here to say I’m having the same issue: freeze css.css -t dracula --font.family 'Sarasa Term J Nerd Font' --font.size 16 -o css.png This just outputs a PNG file with a background but no text. |
Describe the bug
Output blank png image when use custom font family in windows
To Reproduce
Steps to reproduce the behavior:
freeze -x "echo Something" --font.family "Microsoft YaHei" -o freeze.png
explorer freeze.png
Expected behavior
Got an blank image.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Load the default fonts dir may help this
freeze/png.go
Lines 50 to 57 in 80803eb
The text was updated successfully, but these errors were encountered: