mirror of
https://github.com/Swordfish90/cool-retro-term.git
synced 2026-02-08 00:32:27 +00:00
21 lines
520 B
C++
21 lines
520 B
C++
#ifndef MONOSPACEFONTMANAGER_H
|
|
#define MONOSPACEFONTMANAGER_H
|
|
|
|
#include <QObject>
|
|
#include <QFontDatabase>
|
|
#include <QStringList>
|
|
|
|
class MonospaceFontManager : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit MonospaceFontManager(QObject *parent = nullptr);
|
|
Q_INVOKABLE QStringList retrieveMonospaceFonts();
|
|
|
|
public slots:
|
|
Q_INVOKABLE void setFontSubstitutions(const QString &family, const QStringList &substitutes);
|
|
void removeFontSubstitution(const QString &family);
|
|
};
|
|
|
|
#endif // MONOSPACEFONTMANAGER_H
|