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/include/cpdf_font.h" | 7 #include "core/fpdfapi/fpdf_font/cpdf_font.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
| 12 #include "core/fpdfapi/fpdf_font/cpdf_fontencoding.h" |
12 #include "core/fpdfapi/fpdf_font/cpdf_truetypefont.h" | 13 #include "core/fpdfapi/fpdf_font/cpdf_truetypefont.h" |
13 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h" | 14 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h" |
14 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" | 15 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" |
15 #include "core/fpdfapi/fpdf_font/font_int.h" | 16 #include "core/fpdfapi/fpdf_font/font_int.h" |
16 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" | |
17 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" | 17 #include "core/fpdfapi/fpdf_page/cpdf_pagemodule.h" |
18 #include "core/fpdfapi/fpdf_page/pageint.h" | 18 #include "core/fpdfapi/fpdf_page/pageint.h" |
19 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 19 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
20 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 20 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" |
21 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 21 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
22 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h" | 22 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h" |
23 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 23 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" |
24 #include "core/fpdfapi/include/cpdf_modulemgr.h" | 24 #include "core/fpdfapi/include/cpdf_modulemgr.h" |
25 #include "core/fxcrt/include/fx_memory.h" | 25 #include "core/fxcrt/include/fx_memory.h" |
26 #include "core/fxge/include/fx_freetype.h" | 26 #include "core/fxge/include/fx_freetype.h" |
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 if (fallbackFont < 0 || | 466 if (fallbackFont < 0 || |
467 fallbackFont >= pdfium::CollectionSize<int>(m_FontFallbacks)) { | 467 fallbackFont >= pdfium::CollectionSize<int>(m_FontFallbacks)) { |
468 return -1; | 468 return -1; |
469 } | 469 } |
470 int glyph = | 470 int glyph = |
471 FXFT_Get_Char_Index(m_FontFallbacks[fallbackFont]->GetFace(), charcode); | 471 FXFT_Get_Char_Index(m_FontFallbacks[fallbackFont]->GetFace(), charcode); |
472 if (glyph == 0 || glyph == 0xffff) | 472 if (glyph == 0 || glyph == 0xffff) |
473 return -1; | 473 return -1; |
474 return glyph; | 474 return glyph; |
475 } | 475 } |
OLD | NEW |