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

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

Issue 2377393002: Move core/fxge/include to core/fxge (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « core/fpdfapi/fpdf_font/cpdf_simplefont.cpp ('k') | core/fpdfapi/fpdf_font/cpdf_type1font.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/cpdf_truetypefont.h" 7 #include "core/fpdfapi/fpdf_font/cpdf_truetypefont.h"
8 8
9 #include "core/fpdfapi/fpdf_font/font_int.h" 9 #include "core/fpdfapi/fpdf_font/font_int.h"
10 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" 10 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h"
11 #include "core/fxge/include/fx_font.h" 11 #include "core/fxge/fx_font.h"
12 12
13 namespace { 13 namespace {
14 14
15 const uint8_t kPrefix[4] = {0x00, 0xf0, 0xf1, 0xf2}; 15 const uint8_t kPrefix[4] = {0x00, 0xf0, 0xf1, 0xf2};
16 16
17 } // namespace 17 } // namespace
18 18
19 CPDF_TrueTypeFont::CPDF_TrueTypeFont() {} 19 CPDF_TrueTypeFont::CPDF_TrueTypeFont() {}
20 20
21 bool CPDF_TrueTypeFont::IsTrueTypeFont() const { 21 bool CPDF_TrueTypeFont::IsTrueTypeFont() const {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 m_Font.GetFace(), m_Encoding.m_Unicodes[charcode]); 214 m_Font.GetFace(), m_Encoding.m_Unicodes[charcode]);
215 if (m_GlyphIndex[charcode]) 215 if (m_GlyphIndex[charcode])
216 bFound = true; 216 bFound = true;
217 } 217 }
218 if (bFound) 218 if (bFound)
219 return; 219 return;
220 } 220 }
221 for (int charcode = 0; charcode < 256; charcode++) 221 for (int charcode = 0; charcode < 256; charcode++)
222 m_GlyphIndex[charcode] = charcode; 222 m_GlyphIndex[charcode] = charcode;
223 } 223 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_font/cpdf_simplefont.cpp ('k') | core/fpdfapi/fpdf_font/cpdf_type1font.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698