bump product version to 7.2.5.1
[LibreOffice.git] / vcl / inc / font / FeatureCollector.hxx
blob9148048f160135bf86d4aea598bea841737f8083
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
9 */
11 #ifndef INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
12 #define INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
14 #include <vcl/font/Feature.hxx>
15 #include <hb.h>
16 #include <i18nlangtag/lang.h>
18 namespace vcl::font
20 class FeatureCollector
22 private:
23 hb_face_t* m_pHbFace;
24 std::vector<vcl::font::Feature>& m_rFontFeatures;
25 LanguageType m_eLanguageType;
27 public:
28 FeatureCollector(hb_face_t* pHbFace, std::vector<vcl::font::Feature>& rFontFeatures,
29 LanguageType eLanguageType)
30 : m_pHbFace(pHbFace)
31 , m_rFontFeatures(rFontFeatures)
32 , m_eLanguageType(eLanguageType)
36 private:
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();
44 public:
45 bool collect();
48 } // namespace vcl::font
50 #endif // INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */