juliettef / IconFontCppHeaders

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, Fontaudio, Codicons and Lucide.
zlib License
1.17k stars 147 forks source link

Problem with ICON_FA_GAS_PUMP ICON #45

Open 0x73616D opened 3 weeks ago

0x73616D commented 3 weeks ago

Hi, I'm trying to use Font Awesome 6 but I'm having a problem with a single icon. For some reason when using ICON_FA_GAS_PUMP I get a ? ImGui::PushFont(icons_fonts); DL->AddText(icon_posGas, 0xFFFFFFFF, ICON_FA_GAS_PUMP); ImGui::PopFont();

0x73616D commented 3 weeks ago

It is well defined: #define ICON_FA_GAS_PUMP "\xef\x94\xaf" // U+f52f The other icons work.

juliettef commented 3 weeks ago

I cannot reproduce the issue. This icon displays as expected using, for example, ImGui::Text( "gas-pump icon: " ICON_FA_GAS_PUMP );. I'm using FA5 Pro but the gas-pump is also part of the FA5 Free and FA6 Free sets. Make sure you have the correct ttf file.