local icons = {
["SOME_ICON"] = "\u{F000}"
}
imgui.OnInitialize(function()
local config = imgui.ImFontConfig()
local glyph_ranges = imgui.GetIO().Fonts:GetGlyphRangesCyrillic()
local iconRanges = imgui.new.ImWchat[3](0xe005, 0xf8ff, 0)
config.MergeMode = true
iconFont = imgui.GetIO().Fonts:AddFontFromMemoryCompressedBase85TTF(compressedIconFont, 14.4, config, iconRanges)
end)
compressedIconFont = "..."
-- somewhere
imgui.PushFont(iconFont)
imgui.Text(icons["SOME_ICON"])
imgui.PopFont()