Fixed ImGui font merge.
This commit is contained in:
parent
402b689505
commit
f853f5868f
4
3rdparty/ocornut-imgui/imgui_draw.cpp
vendored
4
3rdparty/ocornut-imgui/imgui_draw.cpp
vendored
@ -1820,8 +1820,8 @@ bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas)
|
|||||||
ImFontConfig& cfg = atlas->ConfigData[input_i];
|
ImFontConfig& cfg = atlas->ConfigData[input_i];
|
||||||
ImFontTempBuildData& tmp = tmp_array[input_i];
|
ImFontTempBuildData& tmp = tmp_array[input_i];
|
||||||
ImFont* dst_font = cfg.DstFont; // We can have multiple input fonts writing into a same destination font (when using MergeMode=true)
|
ImFont* dst_font = cfg.DstFont; // We can have multiple input fonts writing into a same destination font (when using MergeMode=true)
|
||||||
if (cfg.MergeMode)
|
// if (cfg.MergeMode)
|
||||||
dst_font->BuildLookupTable();
|
// dst_font->BuildLookupTable();
|
||||||
|
|
||||||
const float font_scale = stbtt_ScaleForPixelHeight(&tmp.FontInfo, cfg.SizePixels);
|
const float font_scale = stbtt_ScaleForPixelHeight(&tmp.FontInfo, cfg.SizePixels);
|
||||||
int unscaled_ascent, unscaled_descent, unscaled_line_gap;
|
int unscaled_ascent, unscaled_descent, unscaled_line_gap;
|
||||||
|
Loading…
Reference in New Issue
Block a user