From: Steinar H. Gunderson Date: Fri, 4 Aug 2023 19:55:00 +0000 (+0200) Subject: Specify font family explicitly for the stream timecode. X-Git-Tag: 2.3.0~33 X-Git-Url: https://git.sesse.net/?p=nageru;a=commitdiff_plain;h=8781ee96803331bbfc6d5e4d8d006a215261baea 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. --- 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);