| 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 "ttgsubtable.h" | 7 #include "core/src/fpdfapi/fpdf_font/ttgsubtable.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "core/include/fxge/fx_freetype.h" | 11 #include "core/include/fxge/fx_freetype.h" |
| 12 #include "core/include/fxge/fx_ge.h" | 12 #include "core/include/fxge/fx_ge.h" |
| 13 #include "third_party/base/stl_util.h" | 13 #include "third_party/base/stl_util.h" |
| 14 | 14 |
| 15 CFX_GlyphMap::CFX_GlyphMap() {} | 15 CFX_GlyphMap::CFX_GlyphMap() {} |
| 16 CFX_GlyphMap::~CFX_GlyphMap() {} | 16 CFX_GlyphMap::~CFX_GlyphMap() {} |
| 17 extern "C" { | 17 extern "C" { |
| (...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 406 FXFT_Load_Sfnt_Table(pFont->GetFace(), FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, | 406 FXFT_Load_Sfnt_Table(pFont->GetFace(), FT_MAKE_TAG('G', 'S', 'U', 'B'), 0, |
| 407 pFont->GetSubData(), NULL); | 407 pFont->GetSubData(), NULL); |
| 408 if (!error && pFont->GetSubData()) { | 408 if (!error && pFont->GetSubData()) { |
| 409 std::unique_ptr<CFX_GSUBTable> pGsubTable(new CFX_GSUBTable); | 409 std::unique_ptr<CFX_GSUBTable> pGsubTable(new CFX_GSUBTable); |
| 410 if (pGsubTable->m_GsubImp.LoadGSUBTable((FT_Bytes)pFont->GetSubData())) { | 410 if (pGsubTable->m_GsubImp.LoadGSUBTable((FT_Bytes)pFont->GetSubData())) { |
| 411 return pGsubTable.release(); | 411 return pGsubTable.release(); |
| 412 } | 412 } |
| 413 } | 413 } |
| 414 return NULL; | 414 return NULL; |
| 415 } | 415 } |
| OLD | NEW |