#Trying to add icons/fonts with ImGUI, compiler error.

1 messages · Page 1 of 1 (latest)

stable plover
#

I'm using the tutorial given by: https://github.com/ocornut/imgui/blob/master/docs/FONTS.md.

Using: https://github.com/juliettef/IconFontCppHeaders

I converted the C code directly into Zig code by using the .yml provided by fork-awesome.

The font zig file & the error messages are attached.

GitHub

C and C++ headers, C# and Python classes, Rust files and Go package for icon fonts Font Awesome, Fork Awesome, Google Material Design, Pictogrammers Material Design icons, Kenney game icons, Fontau...

#

Here's more info.

I'm also on Windows 11, using mach's zig version.

#

I manually converted the encoding to UTF-8, and it seems to have resolved it.

pure ridge
#

Looks like you copied some corrupted bytes accidentally

#

0xff is not valid utf8