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

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

Issue 1427633010: Fix relative includes within core/ (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 1 month 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
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 "../../../include/fpdfapi/fpdf_module.h" 7 #include "font_int.h"
8 #include "../../../include/fpdfapi/fpdf_page.h" 8
9 #include "../../../include/fpdfapi/fpdf_resource.h"
10 #include "../../../include/fxge/fx_freetype.h"
11 #include "../../../include/fxge/fx_ge.h"
12 #include "../fpdf_cmaps/cmap_int.h" 9 #include "../fpdf_cmaps/cmap_int.h"
13 #include "font_int.h" 10 #include "core/include/fpdfapi/fpdf_module.h"
11 #include "core/include/fpdfapi/fpdf_page.h"
12 #include "core/include/fpdfapi/fpdf_resource.h"
13 #include "core/include/fxge/fx_freetype.h"
14 #include "core/include/fxge/fx_ge.h"
14 15
15 namespace { 16 namespace {
16 17
17 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = 18 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] =
18 {nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"}; 19 {nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"};
19 20
20 const int g_CharsetCPs[CIDSET_NUM_SETS] = {0, 936, 950, 932, 949, 1200}; 21 const int g_CharsetCPs[CIDSET_NUM_SETS] = {0, 936, 950, 932, 949, 1200};
21 22
22 class CPDF_PredefinedCMap { 23 class CPDF_PredefinedCMap {
23 public: 24 public:
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 1746
1746 const uint8_t* CPDF_CIDFont::GetCIDTransform(FX_WORD CID) const { 1747 const uint8_t* CPDF_CIDFont::GetCIDTransform(FX_WORD CID) const {
1747 if (m_Charset != CIDSET_JAPAN1 || m_pFontFile) 1748 if (m_Charset != CIDSET_JAPAN1 || m_pFontFile)
1748 return nullptr; 1749 return nullptr;
1749 1750
1750 const struct CIDTransform* found = (const struct CIDTransform*)FXSYS_bsearch( 1751 const struct CIDTransform* found = (const struct CIDTransform*)FXSYS_bsearch(
1751 &CID, g_Japan1_VertCIDs, FX_ArraySize(g_Japan1_VertCIDs), 1752 &CID, g_Japan1_VertCIDs, FX_ArraySize(g_Japan1_VertCIDs),
1752 sizeof(g_Japan1_VertCIDs[0]), CompareCIDTransform); 1753 sizeof(g_Japan1_VertCIDs[0]), CompareCIDTransform);
1753 return found ? &found->a : nullptr; 1754 return found ? &found->a : nullptr;
1754 } 1755 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font_charset.cpp ('k') | core/src/fpdfapi/fpdf_font/ttgsubtable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698