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
featureNew feature or requestquestionFurther information is requested
1 participant
Converted from issue
This discussion was converted from issue #1385 on July 14, 2022 03:05.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is there an existing issue for this?
Is this issue related to iced?
What happened?
It's currently not possible to change the default font besides loading your own
.ttf
file.It looks like all that's needed is to make
Source
public:https://docs.rs/iced_graphics/latest/iced_graphics/font/struct.Source.html
The demos shipped with
iced
use that structure to modify the default font:https://github.com/iced-rs/iced/blob/master/glow/src/text.rs#L29
but I have been unable to use it from outside
iced
.What is the expected behavior?
It should be possible to select a font available on the OS without having to load your own
.ttf
.Version
0.4
Operative System
Windows
Do you have any log output?
No response
Beta Was this translation helpful? Give feedback.
All reactions