You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
561 B
30 lines
561 B
#pragma once |
|
|
|
/* |
|
* SPDX-FileCopyrightText: 2003-2009 Craig Drummond <craig@kde.org> |
|
* SPDX-License-Identifier: GPL-2.0-or-later |
|
*/ |
|
|
|
#include "kfontinst_export.h" |
|
#include <QMap> |
|
#include <QStringList> |
|
#include <fontconfig/fontconfig.h> |
|
|
|
namespace KFI |
|
{ |
|
class KFONTINST_EXPORT WritingSystems |
|
{ |
|
public: |
|
static WritingSystems *instance(); |
|
|
|
WritingSystems(); |
|
|
|
qulonglong get(FcPattern *pat) const; |
|
qulonglong get(const QStringList &langs) const; |
|
QStringList getLangs(qulonglong ws) const; |
|
|
|
private: |
|
QMap<QString, qulonglong> m_map; |
|
}; |
|
|
|
}
|
|
|