]> git.sesse.net Git - nageru/commitdiff
Specify font family explicitly for the stream timecode.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Aug 2023 19:55:00 +0000 (21:55 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 4 Aug 2023 19:56:06 +0000 (21:56 +0200)
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

index 254ece7a3c2c2806bb26bba8a3f6358763d00cae..7c9db2d7e38a6bdd9c98dcb2130317cfa74ff53c 100644 (file)
@@ -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);