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

Side by Side Diff: core/fxge/ge/cfx_fontmgr.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/fxge/ge/cfx_fontmapper.cpp ('k') | core/fxge/ge/cfx_gemodule.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/fxge/include/cfx_fontmgr.h" 7 #include "core/fxge/cfx_fontmgr.h"
8 8
9 #include "core/fxge/cfx_fontmapper.h"
10 #include "core/fxge/cfx_substfont.h"
9 #include "core/fxge/fontdata/chromefontdata/chromefontdata.h" 11 #include "core/fxge/fontdata/chromefontdata/chromefontdata.h"
12 #include "core/fxge/fx_font.h"
10 #include "core/fxge/ge/cttfontdesc.h" 13 #include "core/fxge/ge/cttfontdesc.h"
11 #include "core/fxge/include/cfx_fontmapper.h" 14 #include "core/fxge/ifx_systemfontinfo.h"
12 #include "core/fxge/include/cfx_substfont.h"
13 #include "core/fxge/include/fx_font.h"
14 #include "core/fxge/include/ifx_systemfontinfo.h"
15 15
16 namespace { 16 namespace {
17 17
18 struct BuiltinFont { 18 struct BuiltinFont {
19 const uint8_t* m_pFontData; 19 const uint8_t* m_pFontData;
20 uint32_t m_dwSize; 20 uint32_t m_dwSize;
21 }; 21 };
22 22
23 const BuiltinFont g_FoxitFonts[14] = { 23 const BuiltinFont g_FoxitFonts[14] = {
24 {g_FoxitFixedFontData, 17597}, 24 {g_FoxitFixedFontData, 17597},
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 return true; 250 return true;
251 } 251 }
252 index -= FX_ArraySize(g_FoxitFonts); 252 index -= FX_ArraySize(g_FoxitFonts);
253 if (index < FX_ArraySize(g_MMFonts)) { 253 if (index < FX_ArraySize(g_MMFonts)) {
254 *pFontData = g_MMFonts[index].m_pFontData; 254 *pFontData = g_MMFonts[index].m_pFontData;
255 *size = g_MMFonts[index].m_dwSize; 255 *size = g_MMFonts[index].m_dwSize;
256 return true; 256 return true;
257 } 257 }
258 return false; 258 return false;
259 } 259 }
OLDNEW
« no previous file with comments | « core/fxge/ge/cfx_fontmapper.cpp ('k') | core/fxge/ge/cfx_gemodule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698