| OLD | NEW |
| 1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/cpdf_type3font.h" | 7 #include "core/fpdfapi/font/cpdf_type3font.h" |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "core/fpdfapi/fpdf_font/cpdf_type3char.h" | 11 #include "core/fpdfapi/font/cpdf_type3char.h" |
| 12 #include "core/fpdfapi/fpdf_page/cpdf_form.h" | 12 #include "core/fpdfapi/fpdf_page/cpdf_form.h" |
| 13 #include "core/fpdfapi/fpdf_page/pageint.h" | 13 #include "core/fpdfapi/fpdf_page/pageint.h" |
| 14 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" | 14 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
| 15 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" | 15 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
| 16 #include "core/fxcrt/fx_system.h" | 16 #include "core/fxcrt/fx_system.h" |
| 17 #include "third_party/base/stl_util.h" | 17 #include "third_party/base/stl_util.h" |
| 18 | 18 |
| 19 CPDF_Type3Font::CPDF_Type3Font() | 19 CPDF_Type3Font::CPDF_Type3Font() |
| 20 : m_pCharProcs(nullptr), | 20 : m_pCharProcs(nullptr), |
| 21 m_pPageResources(nullptr), | 21 m_pPageResources(nullptr), |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return m_CharWidthL[charcode]; | 150 return m_CharWidthL[charcode]; |
| 151 | 151 |
| 152 const CPDF_Type3Char* pChar = LoadChar(charcode); | 152 const CPDF_Type3Char* pChar = LoadChar(charcode); |
| 153 return pChar ? pChar->m_Width : 0; | 153 return pChar ? pChar->m_Width : 0; |
| 154 } | 154 } |
| 155 | 155 |
| 156 FX_RECT CPDF_Type3Font::GetCharBBox(uint32_t charcode) { | 156 FX_RECT CPDF_Type3Font::GetCharBBox(uint32_t charcode) { |
| 157 const CPDF_Type3Char* pChar = LoadChar(charcode); | 157 const CPDF_Type3Char* pChar = LoadChar(charcode); |
| 158 return pChar ? pChar->m_BBox : FX_RECT(); | 158 return pChar ? pChar->m_BBox : FX_RECT(); |
| 159 } | 159 } |
| OLD | NEW |