Replies: 1 comment 2 replies
-
Please see the following issue. There are a couple PRs attempting to add this functionality now that we've switched to |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm using Bevy UI and found it annoying to attach font files. While there's loads of fonts embedded in a common operating system.
#11839 shows how to set a font as default font from a specific path. Though I can try to fill in the path myself, there seems no method built-in to do it cross-platform. It would be even better if I can name it.
Moreover, I would like it to work as a fall-back, which is used when the font I specified does not exist, as it works on web (people simply write
font-family: Georgia, 'Times New Roman', Times, serif
and never care if none of these fonts exist).And I want it possible to specify the
font-weight
with that feature, as it works on web (font-weight: 700; font-stretch: 100%;
selecting the font face).It seems there doesn't a simple way to do that with the source code I read or cargo searched. What's the current solution to this?
Beta Was this translation helpful? Give feedback.
All reactions