- 129
- 14
- Версия MoonLoader
- .026-beta
Пытаюсь подружить font awesome с другим шрифтом который хочу использовать в интерфейсе но получай краш игры
Lua:
function imgui.BeforeDrawFrame()
imgui.GetIO().Fonts:Clear()
if fa_font == nil then
local font_config = imgui.ImFontConfig() -- to use 'imgui.ImFontConfig.new()' on error
font_config.MergeMode = true
fa_font = imgui.GetIO().Fonts:AddFontFromFileTTF('moonloader/resource/fonts/fa-solid-900.ttf', 13.0, font_config, fa_glyph_ranges)
end
if fa_font_notf == nil then
fa_font_notf = imgui.GetIO().Fonts:AddFontFromFileTTF('moonloader/resource/fonts/fa-solid-900.ttf', 20.0, nil, fa_glyph_ranges)
end
imgui.GetIO().Fonts:AddFontFromFileTTF("moonloader/resource/fonts/EagleSans-Reg.ttf", 16, nil, imgui.GetIO().Fonts:GetGlyphRangesCyrillic())
imgui.RebuildFonts()
end