1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 #ifndef INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
12 #define INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
14 #include <vcl/font/Feature.hxx>
16 #include <i18nlangtag/lang.h>
20 class FeatureCollector
24 std::vector
<vcl::font::Feature
>& m_rFontFeatures
;
25 LanguageType m_eLanguageType
;
28 FeatureCollector(hb_face_t
* pHbFace
, std::vector
<vcl::font::Feature
>& rFontFeatures
,
29 LanguageType eLanguageType
)
31 , m_rFontFeatures(rFontFeatures
)
32 , m_eLanguageType(eLanguageType
)
37 void collectForLanguage(hb_tag_t aTableTag
, sal_uInt32 nScript
, hb_tag_t aScriptTag
,
38 sal_uInt32 nLanguage
, hb_tag_t aLanguageTag
);
40 void collectForScript(hb_tag_t aTableTag
, sal_uInt32 nScript
, hb_tag_t aScriptTag
);
41 void collectForTable(hb_tag_t aTableTag
);
42 bool collectGraphite();
48 } // namespace vcl::font
50 #endif // INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */