Open Geo5 opened 9 months ago
GlyphRangesBuilder is broken. Refer https://github.com/AllenDang/cimgui-go/issues/206
upstream issue closed, @Geo5 there was a large change in the way how cimgui-go wraps imgui types. Could you check if this works now?
It does not seem to fix anything
Hey, using icon fonts (and also possibly the MultipleFonts example) seems to be broken since the migration to cimgui-go.
Below is the code example, which correctly displays icons on v0.7.0 but does not work on current master:
![Fonts_master](https://github.com/AllenDang/giu/assets/18027367/c6a78107-51c4-47f2-8680-12b62ac9b5c0)
The minimal example uses https://github.com/juliettef/IconFontCppHeaders with forkawesome-webfont.ttf
I could not find any changes, which seemed meaningful to me to FontAtlasProcessor.go since v0.7.0, so maybe it has something to do with cimgui-go itself.
Code example
```golang package main import ( iconFonts "github.com/juliettef/IconFontCppHeaders" g "github.com/AllenDang/giu" ) var IconFont = iconFonts.IconsForkAwesome func Icon(name string) string { ret, ok := IconFont.Icons[name] if !ok { panic(name + " icon not found") } return ret } func loop() { g.SingleWindow().Layout( g.Label("Content line"), g.Label("Content line "+Icon("Check")), g.Button("Normal button"), g.Button("Normal button"+Icon("Check")), ) } func main() { wnd := g.NewMasterWindow("Multiple fonts and icons", 600, 400, g.MasterWindowFlagsNotResizable) // Change the default font to include icons g.Context.FontAtlas.SetDefaultFont("forkawesome-webfont.ttf", 20) wnd.Run(loop) } ```main.go
To Reproduce
Version
master
OS
Linux