-
Notifications
You must be signed in to change notification settings - Fork 72
Open
Description
Describe the bug
Output blank png image when use custom font family in windows
To Reproduce
Steps to reproduce the behavior:
- Execute
freeze -x "echo Something" --font.family "Microsoft YaHei" -o freeze.png
- Execute
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):
- OS: Microsoft Windows
- Browser chrome
- Version 23H2 10.0.22635.3495
Additional context
Load the default fonts dir may help this
Lines 50 to 57 in 80803eb
err = fontdb.LoadFontData(font.JetBrainsMonoTTF) | |
if err != nil { | |
printErrorFatal("Unable to load font", err) | |
} | |
err = fontdb.LoadFontData(font.JetBrainsMonoNLTTF) | |
if err != nil { | |
printErrorFatal("Unable to load font", err) | |
} |
fontdb.LoadFontsDir(OS_FONTS_DIR)
Metadata
Metadata
Assignees
Labels
No labels