We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
2022/12/28 14:09:20 Fyne error: font load error 2022/12/28 14:09:20 Cause: unsupported font format 2022/12/28 14:09:20 At: C:/Users/xxx/go/pkg/mod/fyne.io/fyne/[email protected]/internal/painter/font.go:150 panic: runtime error: invalid memory address or nil pointer dereference
Install fyne v2.3.0 Use code from example
No response
package main import ( "fyne.io/fyne/v2" "fyne.io/fyne/v2/app" "fyne.io/fyne/v2/widget" "os" ) func init(){ os.Setenv("FYNE_FONT", "C:\\windows\\fonts\\msyh.ttc") } func main() { a := app.New() w := a.NewWindow("demo") w.Resize(fyne.Size{300, 200}) w.CenterOnScreen() w.SetContent(widget.NewLabel("Hello World!")) w.ShowAndRun() }
2.3.0
1.19.3
Windows
Windows 11 22H2 Build 22621.963
The text was updated successfully, but these errors were encountered:
Seems like a dupe of #3245 - we only support .ttf at this time.
Sorry, something went wrong.
No branches or pull requests
Checklist
Describe the bug
2022/12/28 14:09:20 Fyne error: font load error
2022/12/28 14:09:20 Cause: unsupported font format
2022/12/28 14:09:20 At: C:/Users/xxx/go/pkg/mod/fyne.io/fyne/[email protected]/internal/painter/font.go:150
panic: runtime error: invalid memory address or nil pointer dereference
How to reproduce
Install fyne v2.3.0
Use code from example
Screenshots
No response
Example code
Fyne version
2.3.0
Go compiler version
1.19.3
Operating system
Windows
Operating system version
Windows 11 22H2 Build 22621.963
Additional Information
No response
The text was updated successfully, but these errors were encountered: