Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: core/fpdfapi/fpdf_font/fpdf_font_cid.cpp

Issue 2223213002: Refactor fx_ge part 3 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/fpdfapi/fpdf_font/cpdf_type1font.cpp ('k') | core/fpdfapi/fpdf_font/ttgsubtable.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/fpdf_font/font_int.h" 7 #include "core/fpdfapi/fpdf_font/font_int.h"
8 8
9 #include "core/fpdfapi/fpdf_cmaps/cmap_int.h" 9 #include "core/fpdfapi/fpdf_cmaps/cmap_int.h"
10 #include "core/fpdfapi/fpdf_font/ttgsubtable.h" 10 #include "core/fpdfapi/fpdf_font/ttgsubtable.h"
11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" 11 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h"
12 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h" 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h"
15 #include "core/fpdfapi/include/cpdf_modulemgr.h" 15 #include "core/fpdfapi/include/cpdf_modulemgr.h"
16 #include "core/fxcrt/include/fx_ext.h" 16 #include "core/fxcrt/include/fx_ext.h"
17 #include "core/fxge/include/fx_freetype.h" 17 #include "core/fxge/include/fx_freetype.h"
18 #include "core/fxge/include/fx_ge.h"
19 18
20 namespace { 19 namespace {
21 20
22 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = { 21 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = {
23 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"}; 22 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"};
24 23
25 24
26 class CPDF_PredefinedCMap { 25 class CPDF_PredefinedCMap {
27 public: 26 public:
28 const FX_CHAR* m_pName; 27 const FX_CHAR* m_pName;
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 m_EmbeddedCount = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count; 790 m_EmbeddedCount = pFontGlobals->m_EmbeddedToUnicodes[charset].m_Count;
792 } 791 }
793 792
794 CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering) { 793 CIDSet CharsetFromOrdering(const CFX_ByteStringC& ordering) {
795 for (size_t charset = 1; charset < FX_ArraySize(g_CharsetNames); ++charset) { 794 for (size_t charset = 1; charset < FX_ArraySize(g_CharsetNames); ++charset) {
796 if (ordering == g_CharsetNames[charset]) 795 if (ordering == g_CharsetNames[charset])
797 return CIDSetFromSizeT(charset); 796 return CIDSetFromSizeT(charset);
798 } 797 }
799 return CIDSET_UNKNOWN; 798 return CIDSET_UNKNOWN;
800 } 799 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/cpdf_type1font.cpp ('k') | core/fpdfapi/fpdf_font/ttgsubtable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698