| 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/src/fpdfapi/fpdf_font/font_int.h" | 7 #include "core/src/fpdfapi/fpdf_font/font_int.h" |
| 8 | 8 |
| 9 #include "core/include/fpdfapi/cpdf_simple_parser.h" |
| 9 #include "core/include/fpdfapi/fpdf_module.h" | 10 #include "core/include/fpdfapi/fpdf_module.h" |
| 10 #include "core/include/fpdfapi/fpdf_page.h" | 11 #include "core/include/fpdfapi/fpdf_page.h" |
| 11 #include "core/include/fpdfapi/fpdf_resource.h" | 12 #include "core/include/fpdfapi/fpdf_resource.h" |
| 12 #include "core/include/fxcrt/fx_ext.h" | 13 #include "core/include/fxcrt/fx_ext.h" |
| 13 #include "core/include/fxge/fx_freetype.h" | 14 #include "core/include/fxge/fx_freetype.h" |
| 14 #include "core/include/fxge/fx_ge.h" | 15 #include "core/include/fxge/fx_ge.h" |
| 15 #include "core/src/fpdfapi/fpdf_cmaps/cmap_int.h" | 16 #include "core/src/fpdfapi/fpdf_cmaps/cmap_int.h" |
| 16 #include "core/src/fpdfapi/fpdf_font/ttgsubtable.h" | 17 #include "core/src/fpdfapi/fpdf_font/ttgsubtable.h" |
| 17 | 18 |
| 18 namespace { | 19 namespace { |
| (...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1742 | 1743 |
| 1743 const uint8_t* CPDF_CIDFont::GetCIDTransform(FX_WORD CID) const { | 1744 const uint8_t* CPDF_CIDFont::GetCIDTransform(FX_WORD CID) const { |
| 1744 if (m_Charset != CIDSET_JAPAN1 || m_pFontFile) | 1745 if (m_Charset != CIDSET_JAPAN1 || m_pFontFile) |
| 1745 return nullptr; | 1746 return nullptr; |
| 1746 | 1747 |
| 1747 const struct CIDTransform* found = (const struct CIDTransform*)FXSYS_bsearch( | 1748 const struct CIDTransform* found = (const struct CIDTransform*)FXSYS_bsearch( |
| 1748 &CID, g_Japan1_VertCIDs, FX_ArraySize(g_Japan1_VertCIDs), | 1749 &CID, g_Japan1_VertCIDs, FX_ArraySize(g_Japan1_VertCIDs), |
| 1749 sizeof(g_Japan1_VertCIDs[0]), CompareCIDTransform); | 1750 sizeof(g_Japan1_VertCIDs[0]), CompareCIDTransform); |
| 1750 return found ? &found->a : nullptr; | 1751 return found ? &found->a : nullptr; |
| 1751 } | 1752 } |
| OLD | NEW |