LibreOffice Module vcl (master) 1
FeatureCollector.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 */
10
11#ifndef INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
12#define INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
13
14#include <vcl/font/Feature.hxx>
15#include <hb.h>
16#include <i18nlangtag/lang.h>
17
19
20namespace vcl::font
21{
23{
24private:
26 hb_face_t* m_pHbFace;
27 std::vector<vcl::font::Feature>& m_rFontFeatures;
29
30public:
31 FeatureCollector(const PhysicalFontFace* pFace, std::vector<vcl::font::Feature>& rFontFeatures,
32 const LanguageTag& rLanguageTag)
33 : m_pFace(pFace)
34 , m_pHbFace(pFace->GetHbFace())
35 , m_rFontFeatures(rFontFeatures)
36 , m_rLanguageTag(rLanguageTag)
37 {
38 }
39
40private:
41 void collectForTable(hb_tag_t aTableTag);
42 bool collectGraphite();
43
44public:
45 bool collect();
46};
47
48} // namespace vcl::font
49
50#endif // INCLUDED_VCL_INC_FONT_FEATURECOLLECTOR_HXX
51
52/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FeatureCollector(const PhysicalFontFace *pFace, std::vector< vcl::font::Feature > &rFontFeatures, const LanguageTag &rLanguageTag)
std::vector< vcl::font::Feature > & m_rFontFeatures
const PhysicalFontFace * m_pFace
void collectForTable(hb_tag_t aTableTag)
const LanguageTag & m_rLanguageTag
abstract base class for physical font faces
A PhysicalFontFaceCollection is created by a PhysicalFontCollection and becomes invalid when original...