Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
cpdf_cid2unicodemap.cpp
Go to the documentation of this file.
1// Copyright 2017 The PDFium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7#include "core/fpdfapi/font/cpdf_cid2unicodemap.h"
8
9#include "core/fpdfapi/font/cpdf_fontglobals.h"
10
15
17
19 return !m_pEmbeddedMap.empty();
20}
21
22wchar_t CPDF_CID2UnicodeMap::UnicodeFromCID(uint16_t cid) const {
23 if (m_Charset == CIDSET_UNICODE)
24 return cid;
25 return cid < m_pEmbeddedMap.size() ? m_pEmbeddedMap[cid] : 0;
26}
wchar_t UnicodeFromCID(uint16_t cid) const
CPDF_CID2UnicodeMap(CIDSet charset)
CIDSet
@ CIDSET_UNICODE