fix: Loading of custom fonts not working anymore

This commit is contained in:
WerWolv
2023-07-24 17:25:36 +02:00
parent a032bfa0f5
commit bca73ef01e
2 changed files with 10 additions and 4 deletions

View File

@@ -636,8 +636,10 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u
for (int src_i = 0; src_i < src_tmp_array.Size; src_i++)
{
ImFontBuildSrcDataFT& src_tmp = src_tmp_array[src_i];
if (src_tmp.GlyphsCount == 0)
continue;
// IMHEX PATCH BEGIN
// if (src_tmp.GlyphsCount == 0)
// continue;
// IMHEX PATCH END
// When merging fonts with MergeMode=true:
// - We can have multiple input fonts writing into a same destination font.