| 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 "../../../include/fpdfapi/fpdf_page.h" | 7 #include "../../../include/fpdfapi/fpdf_page.h" |
| 8 #include "../../../include/fpdfapi/fpdf_module.h" | 8 #include "../../../include/fpdfapi/fpdf_module.h" |
| 9 #include "../../../include/fpdfapi/fpdf_pageobj.h" | 9 #include "../../../include/fpdfapi/fpdf_pageobj.h" |
| 10 #include "font_int.h" | 10 #include "font_int.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 FXSYS_memset32(m_EmbeddedToUnicodes, 0, sizeof m_EmbeddedToUnicodes); | 28 FXSYS_memset32(m_EmbeddedToUnicodes, 0, sizeof m_EmbeddedToUnicodes); |
| 29 m_pContrastRamps = NULL; | 29 m_pContrastRamps = NULL; |
| 30 } | 30 } |
| 31 CPDF_FontGlobals::~CPDF_FontGlobals() | 31 CPDF_FontGlobals::~CPDF_FontGlobals() |
| 32 { | 32 { |
| 33 ClearAll(); | 33 ClearAll(); |
| 34 if (m_pContrastRamps) { | 34 if (m_pContrastRamps) { |
| 35 FX_Free(m_pContrastRamps); | 35 FX_Free(m_pContrastRamps); |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 class CFX_StockFontArray : public CFX_Object | 38 class CFX_StockFontArray |
| 39 { | 39 { |
| 40 public: | 40 public: |
| 41 CFX_StockFontArray() | 41 CFX_StockFontArray() |
| 42 { | 42 { |
| 43 FXSYS_memset32(m_pStockFonts, 0, sizeof(CPDF_Font*) * 14); | 43 FXSYS_memset32(m_pStockFonts, 0, sizeof(CPDF_Font*) * 14); |
| 44 } | 44 } |
| 45 CPDF_Font* m_pStockFonts[14]; | 45 CPDF_Font* m_pStockFonts[14]; |
| 46 }; | 46 }; |
| 47 CPDF_Font* CPDF_FontGlobals::Find(void* key, int index) | 47 CPDF_Font* CPDF_FontGlobals::Find(void* key, int index) |
| 48 { | 48 { |
| (...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1761 } | 1761 } |
| 1762 CPDF_Type3Char::~CPDF_Type3Char() | 1762 CPDF_Type3Char::~CPDF_Type3Char() |
| 1763 { | 1763 { |
| 1764 if (m_pForm) { | 1764 if (m_pForm) { |
| 1765 delete m_pForm; | 1765 delete m_pForm; |
| 1766 } | 1766 } |
| 1767 if (m_pBitmap) { | 1767 if (m_pBitmap) { |
| 1768 delete m_pBitmap; | 1768 delete m_pBitmap; |
| 1769 } | 1769 } |
| 1770 } | 1770 } |
| OLD | NEW |