diff options
| author | Georg Gadinger <nilsding@nilsding.org> | 2021-05-09 21:08:04 +0200 |
|---|---|---|
| committer | Georg Gadinger <nilsding@nilsding.org> | 2021-11-26 21:01:42 +0100 |
| commit | 816780e80943ef0ae6e645c1f912a5575fca9770 (patch) | |
| tree | 7521c95b449c0dd73dca0c89c560165fc544d8f9 /src/plugins/Ui/skinned/skin.h | |
| parent | 596e820fa0e8bca3c53a00481c34ac6f047160ee (diff) | |
| download | qmmp-816780e80943ef0ae6e645c1f912a5575fca9770.tar.gz qmmp-816780e80943ef0ae6e645c1f912a5575fca9770.tar.bz2 qmmp-816780e80943ef0ae6e645c1f912a5575fca9770.zip | |
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...
Diffstat (limited to 'src/plugins/Ui/skinned/skin.h')
| -rw-r--r-- | src/plugins/Ui/skinned/skin.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/Ui/skinned/skin.h b/src/plugins/Ui/skinned/skin.h index d342c1e5a..42f63946c 100644 --- a/src/plugins/Ui/skinned/skin.h +++ b/src/plugins/Ui/skinned/skin.h @@ -66,6 +66,11 @@ public: const QColor getMainColor(int n) const; const QColor &getVisColor(int n) const; const QRegion getRegion(uint r) const; + /*! + * Returns whether s only contains characters which have a bitmapped + * equivalent. + */ + const bool canUseBitmapFont(const QString& s) const; enum Button { @@ -297,6 +302,7 @@ private: QMap<uint, QPixmap> m_ms_parts; QMap<uint, QPixmap> m_parts; QMap<QChar, QPixmap> m_letters; + QRegExp m_bitmapLetters; QMap<QByteArray, QByteArray> m_pledit_txt; QMap<uint, QRegion> m_regions; QPixmap m_main; |
