From 816780e80943ef0ae6e645c1f912a5575fca9770 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sun, 9 May 2021 21:08:04 +0200 Subject: skinned: use bitmap font if we really have all the characters available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This makes tracks from e.g. "Turmion Kätilöt" or "Die Ärzte" display using the bitmap font. Since the characters seem to be UTF-8 anyway, it seems to be fine in my initial tests... --- src/plugins/Ui/skinned/textscroller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/Ui/skinned/textscroller.cpp') diff --git a/src/plugins/Ui/skinned/textscroller.cpp b/src/plugins/Ui/skinned/textscroller.cpp index b41041985..b114fbdfa 100644 --- a/src/plugins/Ui/skinned/textscroller.cpp +++ b/src/plugins/Ui/skinned/textscroller.cpp @@ -263,7 +263,7 @@ void TextScroller::processMetaData() void TextScroller::preparePixmap(const QString &text, bool scrollable) { m_scroll = scrollable; - bool bitmap = m_bitmap && (text.toLatin1() == text.toLocal8Bit()); //use bitmap font if possible + bool bitmap = m_bitmap && m_skin->canUseBitmapFont(text); // use bitmap font if possible if(scrollable) { int textWidth = m_bitmap ? QString(text + SCROLL_SEP).size() * 5 -- cgit v1.2.3-13-gbd6f