OLD | NEW |
---|---|
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "core/fpdfapi/font/font_int.h" | 7 #include "core/fpdfapi/font/font_int.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "core/fpdfapi/cmaps/cmap_int.h" | 12 #include "core/fpdfapi/cmaps/cmap_int.h" |
13 #include "core/fpdfapi/cpdf_modulemgr.h" | 13 #include "core/fpdfapi/cpdf_modulemgr.h" |
14 #include "core/fpdfapi/font/ttgsubtable.h" | 14 #include "core/fpdfapi/font/ttgsubtable.h" |
15 #include "core/fpdfapi/page/cpdf_pagemodule.h" | 15 #include "core/fpdfapi/page/cpdf_pagemodule.h" |
16 #include "core/fpdfapi/parser/cpdf_array.h" | 16 #include "core/fpdfapi/parser/cpdf_array.h" |
17 #include "core/fpdfapi/parser/cpdf_dictionary.h" | 17 #include "core/fpdfapi/parser/cpdf_dictionary.h" |
18 #include "core/fpdfapi/parser/cpdf_simple_parser.h" | 18 #include "core/fpdfapi/parser/cpdf_simple_parser.h" |
19 #include "core/fxcrt/fx_ext.h" | 19 #include "core/fxcrt/fx_ext.h" |
20 #include "core/fxge/fx_freetype.h" | 20 #include "core/fxge/fx_freetype.h" |
21 #include "third_party/base/logging.h" | |
dsinclair
2017/01/23 14:46:33
What is this for?
jschuh
2017/01/23 17:05:19
I removed all dependencies on base/logging.h from
Tom Sepez
2017/01/23 18:19:13
Exactly, there's an invocation of NOTREACHED() at
| |
21 #include "third_party/base/stl_util.h" | 22 #include "third_party/base/stl_util.h" |
22 | 23 |
23 namespace { | 24 namespace { |
24 | 25 |
25 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = { | 26 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = { |
26 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"}; | 27 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"}; |
27 | 28 |
28 class CPDF_PredefinedCMap { | 29 class CPDF_PredefinedCMap { |
29 public: | 30 public: |
30 const FX_CHAR* m_pName; | 31 const FX_CHAR* m_pName; |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
777 m_EmbeddedCount = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count; | 778 m_EmbeddedCount = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count; |
778 } | 779 } |
779 | 780 |
780 CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering) { | 781 CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering) { |
781 for (size_t charset = 1; charset < FX_ArraySize(g_CharsetNames); ++charset) { | 782 for (size_t charset = 1; charset < FX_ArraySize(g_CharsetNames); ++charset) { |
782 if (ordering == g_CharsetNames[charset]) | 783 if (ordering == g_CharsetNames[charset]) |
783 return CIDSetFromSizeT(charset); | 784 return CIDSetFromSizeT(charset); |
784 } | 785 } |
785 return CIDSET_UNKNOWN; | 786 return CIDSET_UNKNOWN; |
786 } | 787 } |
OLD | NEW |