PoDoFo 1.0.0-dev
Loading...
Searching...
No Matches
PdfCIDToGIDMap.h
1
7#ifndef PDF_CID_TO_GID_MAP_H
8#define PDF_CID_TO_GID_MAP_H
9
10#include "PdfDeclarations.h"
11#include "PdfObject.h"
12
13namespace PoDoFo
14{
18 using CIDToGIDMap = std::map<unsigned, unsigned>;
19
24 {
25 public:
26 using iterator = CIDToGIDMap::const_iterator;
27
28 public:
30 PdfCIDToGIDMap(const PdfCIDToGIDMap&) = default;
31 PdfCIDToGIDMap(PdfCIDToGIDMap&&) noexcept = default;
32
34
35 public:
36 bool TryMapCIDToGID(unsigned cid, unsigned& gid) const;
37 void ExportTo(PdfObject& descendantFont);
38
39 public:
40 unsigned GetSize() const;
41 iterator begin() const;
42 iterator end() const;
43
44 private:
45 CIDToGIDMap m_cidToGidMap;
46 };
47
48 using PdfCIDToGIDMapConstPtr = std::shared_ptr<const PdfCIDToGIDMap>;
49}
50
51#endif // PDF_CID_TO_GID_MAP_H
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
Helper class to handle the /CIDToGIDMap entry in a Type2 CID font or /TrueType fonts implicit CID to ...
Definition PdfCIDToGIDMap.h:24
This class represents a PDF indirect Object in memory.
Definition PdfObject.h:35
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
@ Create
Create a new file or truncate existing one for writing/reading.
std::map< unsigned, unsigned > CIDToGIDMap
A backing storage for a CID to GID map.
Definition PdfCIDToGIDMap.h:18