From 8781ee96803331bbfc6d5e4d8d006a215261baea Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Fri, 4 Aug 2023 21:55:00 +0200 Subject: [PATCH] Specify font family explicitly for the stream timecode. Seemingly the default is now a font where not all digits are equally wide, and that makes the text jump constantly back and forth. Noto Sans should be pretty widely supported, and if not, we'll probably fall back to whatever we had before. --- nageru/timecode_renderer.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/nageru/timecode_renderer.cpp b/nageru/timecode_renderer.cpp index 254ece7..7c9db2d 100644 --- a/nageru/timecode_renderer.cpp +++ b/nageru/timecode_renderer.cpp @@ -112,6 +112,7 @@ void TimecodeRenderer::render_string_to_buffer(const string &text) painter.setPen(Qt::white); QFont font = painter.font(); + font.setFamily("Noto Sans"); font.setPointSize(16); painter.setFont(font); -- 2.39.2