Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Side by Side Diff: core/fpdfapi/fpdf_font/cpdf_font.cpp

Issue 1868533002: Move core/include/fxge to core/fxge/include. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « BUILD.gn ('k') | core/fpdfapi/fpdf_font/cpdf_fontencoding.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/include/cpdf_font.h"
8 8
9 #include "core/fpdfapi/fpdf_font/cpdf_truetypefont.h" 9 #include "core/fpdfapi/fpdf_font/cpdf_truetypefont.h"
10 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h" 10 #include "core/fpdfapi/fpdf_font/cpdf_type1font.h"
11 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" 11 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h"
12 #include "core/fpdfapi/fpdf_font/font_int.h" 12 #include "core/fpdfapi/fpdf_font/font_int.h"
13 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h" 13 #include "core/fpdfapi/fpdf_font/include/cpdf_fontencoding.h"
14 #include "core/fpdfapi/fpdf_page/pageint.h" 14 #include "core/fpdfapi/fpdf_page/pageint.h"
15 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h"
17 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
18 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h" 18 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h"
19 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" 19 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h"
20 #include "core/fpdfapi/include/cpdf_modulemgr.h" 20 #include "core/fpdfapi/include/cpdf_modulemgr.h"
21 #include "core/include/fxge/fx_freetype.h" 21 #include "core/fxge/include/fx_freetype.h"
22 22
23 namespace { 23 namespace {
24 24
25 const uint8_t ChineseFontNames[][5] = {{0xCB, 0xCE, 0xCC, 0xE5, 0x00}, 25 const uint8_t ChineseFontNames[][5] = {{0xCB, 0xCE, 0xCC, 0xE5, 0x00},
26 {0xBF, 0xAC, 0xCC, 0xE5, 0x00}, 26 {0xBF, 0xAC, 0xCC, 0xE5, 0x00},
27 {0xBA, 0xDA, 0xCC, 0xE5, 0x00}, 27 {0xBA, 0xDA, 0xCC, 0xE5, 0x00},
28 {0xB7, 0xC2, 0xCB, 0xCE, 0x00}, 28 {0xB7, 0xC2, 0xCB, 0xCE, 0x00},
29 {0xD0, 0xC2, 0xCB, 0xCE, 0x00}}; 29 {0xD0, 0xC2, 0xCB, 0xCE, 0x00}};
30 30
31 FX_BOOL GetPredefinedEncoding(int& basemap, const CFX_ByteString& value) { 31 FX_BOOL GetPredefinedEncoding(int& basemap, const CFX_ByteString& value) {
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 if (charcode < 0 || charcode >= 256) 483 if (charcode < 0 || charcode >= 256)
484 return nullptr; 484 return nullptr;
485 485
486 const FX_CHAR* name = nullptr; 486 const FX_CHAR* name = nullptr;
487 if (pCharNames) 487 if (pCharNames)
488 name = pCharNames[charcode]; 488 name = pCharNames[charcode];
489 if ((!name || name[0] == 0) && iBaseEncoding) 489 if ((!name || name[0] == 0) && iBaseEncoding)
490 name = PDF_CharNameFromPredefinedCharSet(iBaseEncoding, charcode); 490 name = PDF_CharNameFromPredefinedCharSet(iBaseEncoding, charcode);
491 return name && name[0] ? name : nullptr; 491 return name && name[0] ? name : nullptr;
492 } 492 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | core/fpdfapi/fpdf_font/cpdf_fontencoding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698