// SPDX-FileCopyrightText: 2007 Dominik Seichter <domseichter@web.de>
// SPDX-FileCopyrightText: 2020 Francesco Pretto <ceztko@gmail.com>
// SPDX-License-Identifier: LGPL-2.0-or-later OR MPL-2.0

#ifndef PDF_FONT_CID_TRUE_TYPE_H
#define PDF_FONT_CID_TRUE_TYPE_H

#include "PdfFontCID.h"

namespace PoDoFo {

/// A PdfFont that represents a CID-keyed font that has a TrueType/OpenType font backend (aka "CIDFontType2")
class PODOFO_API PdfFontCIDTrueType final : public PdfFontCID
{
    friend class PdfFont;

private:
    /// Create a new CID font.
    ///
    /// @param doc parent of the font object
    /// @param metrics pointer to a font metrics object. The font in the PDF
    ///         file will match this fontmetrics object. The metrics object is
    ///         deleted along with the font.
    /// @param encoding the encoding of this font
    PdfFontCIDTrueType(PdfDocument& doc, PdfFontMetricsConstPtr&& metrics,
        const PdfEncoding& encoding);

protected:
    void embedFontFileSubset(const std::vector<PdfCharGIDInfo>& infos,
        const PdfCIDSystemInfo& cidInfo) override;
};

};

#endif // PDF_FONT_CID_TRUE_TYPE_H
