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

Side by Side Diff: core/src/fxge/ge/fx_ge_fontmap.cpp

Issue 1545823002: IWYU fix for commit ba2586d2c0a5. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Created 5 years 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/src/fpdfapi/fpdf_render/fpdf_render_image.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <limits> 7 #include <limits>
8 #include <vector>
8 9
9 #include "core/include/fxge/fx_freetype.h" 10 #include "core/include/fxge/fx_freetype.h"
10 #include "core/include/fxge/fx_ge.h" 11 #include "core/include/fxge/fx_ge.h"
11 #include "core/src/fxge/fontdata/chromefontdata/chromefontdata.h" 12 #include "core/src/fxge/fontdata/chromefontdata/chromefontdata.h"
12 #include "core/src/fxge/ge/text_int.h" 13 #include "core/src/fxge/ge/text_int.h"
13 #include "third_party/base/stl_util.h" 14 #include "third_party/base/stl_util.h"
14 15
15 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1]) 16 #define GET_TT_SHORT(w) (FX_WORD)(((w)[0] << 8) | (w)[1])
16 #define GET_TT_LONG(w) \ 17 #define GET_TT_LONG(w) \
17 (FX_DWORD)(((w)[0] << 24) | ((w)[1] << 16) | ((w)[2] << 8) | (w)[3]) 18 (FX_DWORD)(((w)[0] << 24) | ((w)[1] << 16) | ((w)[2] << 8) | (w)[3])
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 int PDF_GetStandardFontName(CFX_ByteString* name) { 1505 int PDF_GetStandardFontName(CFX_ByteString* name) {
1505 AltFontName* found = static_cast<AltFontName*>( 1506 AltFontName* found = static_cast<AltFontName*>(
1506 FXSYS_bsearch(name->c_str(), g_AltFontNames, FX_ArraySize(g_AltFontNames), 1507 FXSYS_bsearch(name->c_str(), g_AltFontNames, FX_ArraySize(g_AltFontNames),
1507 sizeof(AltFontName), CompareString)); 1508 sizeof(AltFontName), CompareString));
1508 if (!found) 1509 if (!found)
1509 return -1; 1510 return -1;
1510 1511
1511 *name = g_Base14FontNames[found->m_Index]; 1512 *name = g_Base14FontNames[found->m_Index];
1512 return found->m_Index; 1513 return found->m_Index;
1513 } 1514 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_render/fpdf_render_image.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698