1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QFONTENGINEMULTIFONTCONFIG_H
5#define QFONTENGINEMULTIFONTCONFIG_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtGui/private/qfontengine_p.h>
19#include <fontconfig/fontconfig.h>
20
21QT_BEGIN_NAMESPACE
22
23class Q_GUI_EXPORT QFontEngineMultiFontConfig : public QFontEngineMulti
24{
25public:
26 explicit QFontEngineMultiFontConfig(QFontEngine *fe, int script);
27
28 ~QFontEngineMultiFontConfig();
29
30 bool shouldLoadFontEngineForCharacter(int at, uint ucs4) const override;
31private:
32 FcPattern* getMatchPatternForFallback(int at) const;
33
34 mutable QList<FcPattern *> cachedMatchPatterns;
35};
36
37QT_END_NAMESPACE
38
39#endif // QFONTENGINEMULTIFONTCONFIG_H
40

source code of qtbase/src/gui/text/unix/qfontenginemultifontconfig_p.h