diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 6cc3c986..faae8934 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -143,6 +143,7 @@ public: SourceView( ImFont* font, GetWindowCallback gwcb ); + void UpdateFont( ImFont* font ) { m_font = font; } void SetCpuId( uint32_t cpuid ); void OpenSource( const char* fileName, int line, const View& view, const Worker& worker ); diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 76ac874a..dae48430 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -15279,6 +15279,7 @@ void View::DrawTextEditor() ImGui::SetNextWindowSize( ImVec2( 1800 * scale, 800 * scale ), ImGuiCond_FirstUseEver ); bool show = true; ImGui::Begin( "Source view", &show, ImGuiWindowFlags_NoScrollbar ); + m_sourceView->UpdateFont( m_fixedFont ); m_sourceView->Render( m_worker, *this ); ImGui::End(); if( !show ) m_sourceViewFile = nullptr;