From ac21169f358ca02d5c6caa3f0b5a1b8d0e612edd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 23 Dec 2021 14:17:28 +0100 Subject: [PATCH] Vertically condense fixed width font. --- profiler/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index 5af16f9b..fc84d939 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -170,6 +170,7 @@ static void LoadFonts( float scale, ImFont*& cb_fixedWidth, ImFont*& cb_bigFont, io.Fonts->AddFontFromMemoryCompressedTTF( tracy::DroidSans_compressed_data, tracy::DroidSans_compressed_size, round( 15.0f * scale ), &configBasic, rangesBasic ); io.Fonts->AddFontFromMemoryCompressedTTF( tracy::FontAwesomeSolid_compressed_data, tracy::FontAwesomeSolid_compressed_size, round( 14.0f * scale ), &configMerge, rangesIcons ); fixedWidth = cb_fixedWidth = io.Fonts->AddFontFromMemoryCompressedTTF( tracy::FiraCodeRetina_compressed_data, tracy::FiraCodeRetina_compressed_size, round( 15.0f * scale ), &configBasic ); + fixedWidth->ExtraLineHeight = round( -5.f * scale ); bigFont = cb_bigFont = io.Fonts->AddFontFromMemoryCompressedTTF( tracy::DroidSans_compressed_data, tracy::DroidSans_compressed_size, round( 21.0f * scale ), &configBasic ); io.Fonts->AddFontFromMemoryCompressedTTF( tracy::FontAwesomeSolid_compressed_data, tracy::FontAwesomeSolid_compressed_size, round( 20.0f * scale ), &configMerge, rangesIcons ); smallFont = cb_smallFont = io.Fonts->AddFontFromMemoryCompressedTTF( tracy::DroidSans_compressed_data, tracy::DroidSans_compressed_size, round( 10.0f * scale ), &configBasic );