local faInstalled, faicons = pcall(require, 'fAwesome6')
if not faInstalled then faicons = function(str) return '?' end end
local usedIcons = {
'user'
}
imgui.OnInitialize(function()
-->> FA6
if faInstalled then
local config = imgui.ImFontConfig()
config.MergeMode = true
config.PixelSnapH = true
local builder = imgui.ImFontGlyphRangesBuilder()
for _, b in ipairs(usedIcons) do
builder:AddText(faicons(b))
end
defaultGlyphRanges1 = imgui.ImVector_ImWchar()
builder:BuildRanges(defaultGlyphRanges1)
imgui.GetIO().Fonts:AddFontFromMemoryCompressedBase85TTF(faicons.get_font_data_base85('solid'), 14, config, defaultGlyphRanges1[0].Data)
end
end)