You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having the same problem -- using the linux build of freeze from inside wsl2 on windows 11 -- trying to specify font.family as "Source Code Pro", or setting font.file as the path to the "SourceCodePro-Regular.ttf" file in my windows\fonts directory. Either way, I get a blank .PNG file. If I use "JetBrains Mono" for the font.family, the file renders correctly (but with an undesirable font).
I am having the same problem -- using the linux build of freeze from inside wsl2 on windows 11 -- trying to specify font.family as "Source Code Pro", or setting font.file as the path to the "SourceCodePro-Regular.ttf" file in my windows\fonts directory. Either way, I get a blank .PNG file. If I use "JetBrains Mono" for the font.family, the file renders correctly (but with an undesirable font).
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
![Snipaste_2024-04-17_20-49-36](https://private-user-images.githubusercontent.com/2217024/323222960-4e5bdf90-aea6-4913-9cdb-1ff3f99433ee.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkzMTE5NDgsIm5iZiI6MTcxOTMxMTY0OCwicGF0aCI6Ii8yMjE3MDI0LzMyMzIyMjk2MC00ZTViZGY5MC1hZWE2LTQ5MTMtOWNkYi0xZmYzZjk5NDMzZWUucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDYyNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA2MjVUMTAzNDA4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWRkMjkyYTU1NTgwMDI0Zjk0ZTMyMTEwNDkzNDk2ZGU0ZGJmOTRkNDhiNmZhMTViODRjNmMzOTM3MDcxY2Q0NCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.bpWgKblNtKtk8U68myaMcSzUr4Gi_yJsVI3GGmJi0D4)
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: