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

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

Issue 1805603002: core/include/fdpfapi cleanup Part I. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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/fpdf_font_charset.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page.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/include/fpdfapi/cpdf_array.h" 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
12 #include "core/include/fpdfapi/cpdf_dictionary.h" 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
13 #include "core/include/fpdfapi/cpdf_simple_parser.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_simple_parser.h"
14 #include "core/include/fpdfapi/fpdf_module.h" 14 #include "core/fpdfapi/include/cpdf_modulemgr.h"
15 #include "core/include/fpdfapi/fpdf_page.h" 15 #include "core/include/fpdfapi/fpdf_page.h"
16 #include "core/include/fpdfapi/fpdf_resource.h" 16 #include "core/include/fpdfapi/fpdf_resource.h"
17 #include "core/include/fxcrt/fx_ext.h" 17 #include "core/include/fxcrt/fx_ext.h"
18 #include "core/include/fxge/fx_freetype.h" 18 #include "core/include/fxge/fx_freetype.h"
19 #include "core/include/fxge/fx_ge.h" 19 #include "core/include/fxge/fx_ge.h"
20 20
21 namespace { 21 namespace {
22 22
23 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = { 23 const FX_CHAR* const g_CharsetNames[CIDSET_NUM_SETS] = {
24 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"}; 24 nullptr, "GB1", "CNS1", "Japan1", "Korea1", "UCS"};
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
1667 1667
1668 const uint8_t* CPDF_CIDFont::GetCIDTransform(FX_WORD CID) const { 1668 const uint8_t* CPDF_CIDFont::GetCIDTransform(FX_WORD CID) const {
1669 if (m_Charset != CIDSET_JAPAN1 || m_pFontFile) 1669 if (m_Charset != CIDSET_JAPAN1 || m_pFontFile)
1670 return nullptr; 1670 return nullptr;
1671 1671
1672 const struct CIDTransform* found = (const struct CIDTransform*)FXSYS_bsearch( 1672 const struct CIDTransform* found = (const struct CIDTransform*)FXSYS_bsearch(
1673 &CID, g_Japan1_VertCIDs, FX_ArraySize(g_Japan1_VertCIDs), 1673 &CID, g_Japan1_VertCIDs, FX_ArraySize(g_Japan1_VertCIDs),
1674 sizeof(g_Japan1_VertCIDs[0]), CompareCIDTransform); 1674 sizeof(g_Japan1_VertCIDs[0]), CompareCIDTransform);
1675 return found ? &found->a : nullptr; 1675 return found ? &found->a : nullptr;
1676 } 1676 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/fpdf_font_charset.cpp ('k') | core/fpdfapi/fpdf_page/fpdf_page.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698