|
|
|
@ -64,16 +64,20 @@ void create_fonts(const overlay_params& params, ImFont*& small_font, ImFont*& te
|
|
|
|
|
io.Fonts->AddFontFromMemoryCompressedBase85TTF(forkawesome_compressed_data_base85, font_size, &config, icon_ranges);
|
|
|
|
|
if (params.no_small_font)
|
|
|
|
|
small_font = io.Fonts->Fonts[0];
|
|
|
|
|
else
|
|
|
|
|
else {
|
|
|
|
|
small_font = io.Fonts->AddFontFromFileTTF(params.font_file.c_str(), font_size * 0.55f, nullptr, default_range);
|
|
|
|
|
io.Fonts->AddFontFromMemoryCompressedBase85TTF(forkawesome_compressed_data_base85, font_size * 0.55f, &config, icon_ranges);
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const char* ttf_compressed_base85 = GetDefaultCompressedFontDataTTFBase85();
|
|
|
|
|
io.Fonts->AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_size, nullptr, default_range);
|
|
|
|
|
io.Fonts->AddFontFromMemoryCompressedBase85TTF(forkawesome_compressed_data_base85, font_size, &config, icon_ranges);
|
|
|
|
|
if (params.no_small_font)
|
|
|
|
|
small_font = io.Fonts->Fonts[0];
|
|
|
|
|
else
|
|
|
|
|
else {
|
|
|
|
|
small_font = io.Fonts->AddFontFromMemoryCompressedBase85TTF(ttf_compressed_base85, font_size * 0.55f, nullptr, default_range);
|
|
|
|
|
io.Fonts->AddFontFromMemoryCompressedBase85TTF(forkawesome_compressed_data_base85, font_size * 0.55f, &config, icon_ranges);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
auto font_file_text = params.font_file_text;
|
|
|
|
|