How to load fonts that are not TTF? #6831
jimadamskye
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 3 comments 2 replies
-
Have you tried imgui_freetype? I can't say I've tried it myself but FreeType is supposed to support WOFF so it might just work. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I guess we would have to port this to rust since that is where I am….
… On Sep 16, 2023, at 11:35 AM, David Maas ***@***.***> wrote:
Have you tried imgui_freetype <https://github.com/ocornut/imgui/tree/master/misc/freetype>?
I can't say I've tried it myself but FreeType is supposed to support WOFF so it might just work.
—
Reply to this email directly, view it on GitHub <#6831 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/A3HEGTJJE42X2BQ2OKAL2F3X2XBLHANCNFSM6AAAAAA426KFSY>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Where are we supposed to find out about features? I thought I read something about a new improvement that would better document them but I haven’t seen evidence of it. I only find out about some useful features in Reddit comments like this one. Sent from my iPhoneOn Sep 23, 2023, at 10:51 PM, David Maas ***@***.***> wrote:
Assuming you're using the imgui crate, I believe you can enable FreeType support by enabling the freetype feature in your Cargo.toml.
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am writing an app in rust and would like to use a font from a webpage. The font is a woff2 type so is not a ttf or otf. Looking at the code I didn't see a way to get this to work. The code certainly chokes when it attempts to read that kind of font. Are there any options? I see some crates that will parse the WOFF2 font but I don't know how to integrate them into imgui.
Beta Was this translation helpful? Give feedback.
All reactions