File indexing completed on 2025-01-12 05:02:07
0001 #pragma once 0002 0003 /* 0004 * SPDX-FileCopyrightText: 2003-2009 Craig Drummond <craig@kde.org> 0005 * SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 0008 #include "kfontinst_export.h" 0009 #include <QMap> 0010 #include <QStringList> 0011 #include <fontconfig/fontconfig.h> 0012 0013 namespace KFI 0014 { 0015 class KFONTINST_EXPORT WritingSystems 0016 { 0017 public: 0018 static WritingSystems *instance(); 0019 0020 WritingSystems(); 0021 0022 qulonglong get(FcPattern *pat) const; 0023 qulonglong get(const QStringList &langs) const; 0024 QStringList getLangs(qulonglong ws) const; 0025 0026 private: 0027 QMap<QString, qulonglong> m_map; 0028 }; 0029 0030 }