giu icon indicating copy to clipboard operation
giu copied to clipboard

How to use Colorful Glyphs/Emojis

Open yibana opened this issue 4 years ago • 2 comments

How display colored emoticons like this

https://github.com/ocornut/imgui/blob/master/docs/FONTS.md#using-colorful-glyphsemojis image

io.Fonts->AddFontFromFileTTF("../../../imgui_dev/data/fonts/NotoSans-Regular.ttf", 16.0f);
static ImWchar ranges[] = { 0x1, 0x1FFFF, 0 };
static ImFontConfig cfg;
cfg.OversampleH = cfg.OversampleV = 1;
cfg.MergeMode = true;
cfg.FontBuilderFlags |= ImGuiFreeTypeBuilderFlags_LoadColor;
io.Fonts->AddFontFromFileTTF("C:\\Windows\\Fonts\\seguiemj.ttf", 16.0f, &cfg, ranges);

yibana avatar Aug 23 '21 03:08 yibana

@yibana I have tried, but doesn't work so far... I'm not familiar with C++ and it's building system... sign

AllenDang avatar Aug 23 '21 05:08 AllenDang

this might come handy -> https://github.com/inkyblackness/imgui-go/issues/6#issuecomment-427059409 will test l8r

phorcys420 avatar Jan 10 '22 19:01 phorcys420

@yibana take a look at #561

gucio321 avatar Oct 06 '22 14:10 gucio321

Issue seems to be fixed in discussion linked above

gucio321 avatar May 09 '23 13:05 gucio321