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
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
main.go
package main
import (
iconFonts "github.com/juliettef/IconFontCppHeaders"
g "github.com/AllenDang/giu"
)
varIconFont=iconFonts.IconsForkAwesomefuncIcon(namestring) string {
ret, ok:=IconFont.Icons[name]
if!ok {
panic(name+" icon not found")
}
returnret
}
funcloop() {
g.SingleWindow().Layout(
g.Label("Content line"),
g.Label("Content line "+Icon("Check")),
g.Button("Normal button"),
g.Button("Normal button"+Icon("Check")),
)
}
funcmain() {
wnd:=g.NewMasterWindow("Multiple fonts and icons", 600, 400, g.MasterWindowFlagsNotResizable)
// Change the default font to include iconsg.Context.FontAtlas.SetDefaultFont("forkawesome-webfont.ttf", 20)
wnd.Run(loop)
}
To Reproduce
Run the demo on master
Run the demo on v0.7.0
Version
master
OS
Linux
The text was updated successfully, but these errors were encountered:
gucio321
removed
the
Likely fixed
Discussion led to some point; everything seems to be fixed and issue is abandoned. Will close soon.
label
Feb 21, 2024
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:
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
main.go
To Reproduce
Version
master
OS
Linux
The text was updated successfully, but these errors were encountered: