-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Possibility to support opentype fonts? #3245
Comments
Thanks for the request, we are in the middle of moving to the go-text project for text handling and so what is supported will be set by that instead. At this time there is only .TTF support there I think, but once ported over we can work to expand that.
We would love to do this, but it would make every application > 200MB on last count. We are trying to find a better approach. |
I think native GUI kits do something like "load system font". And maybe there can be a stack of fallbacks. |
Indeed, the challenge is for consistency, and amount of platform code required. |
The issue title refers to OpenType support but the conversation here also relates to tracking TrueType Collection (.ttc) support, just commenting for clarity. Also there is .otc (OpenType Collection) as well |
It turns out that collections is a lot more work than just different font formats. To get collections working well also needs lazy loading based on some criteria, so opening a new issue for it - #4053 |
Support for ".otf" is in on |
Checklist
Is your feature request related to a problem?
An earlier, related issue: #400
Some fonts I want to use comes with only Opentype (ttc) format, and Fyne doesn't load it. I don't know the underlying architecture as I am just trying this framework out, but it seems like
golang.org/x/image/font/opentype
already supports both formats. Is there a reason Fyne is not using it?Is it possible to construct a solution with the existing API?
No response
Describe the solution you'd like to see.
Support TTF and OTF fonts.
Bonus if Fyne bundles fonts for CJK languages and all languages on earth :)
The text was updated successfully, but these errors were encountered: