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

Side by Side Diff: core/fxge/ge/cfx_font.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_folderfontinfo.cpp ('k') | core/fxge/ge/cfx_fontcache.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 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 "core/fxge/include/fx_font.h" 7 #include "core/fxge/fx_font.h"
8 8
9 #include "core/fpdfapi/fpdf_font/cpdf_font.h" 9 #include "core/fpdfapi/fpdf_font/cpdf_font.h"
10 #include "core/fxge/cfx_facecache.h"
11 #include "core/fxge/cfx_fontcache.h"
12 #include "core/fxge/cfx_fontmgr.h"
13 #include "core/fxge/cfx_gemodule.h"
14 #include "core/fxge/cfx_pathdata.h"
15 #include "core/fxge/cfx_substfont.h"
16 #include "core/fxge/fx_freetype.h"
10 #include "core/fxge/ge/fx_text_int.h" 17 #include "core/fxge/ge/fx_text_int.h"
11 #include "core/fxge/include/cfx_facecache.h"
12 #include "core/fxge/include/cfx_fontcache.h"
13 #include "core/fxge/include/cfx_fontmgr.h"
14 #include "core/fxge/include/cfx_gemodule.h"
15 #include "core/fxge/include/cfx_pathdata.h"
16 #include "core/fxge/include/cfx_substfont.h"
17 #include "core/fxge/include/fx_freetype.h"
18 18
19 #define EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em) 19 #define EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em)
20 20
21 namespace { 21 namespace {
22 22
23 typedef struct { 23 typedef struct {
24 FX_BOOL m_bCount; 24 FX_BOOL m_bCount;
25 int m_PointCount; 25 int m_PointCount;
26 FX_PATHPOINT* m_pPoints; 26 FX_PATHPOINT* m_pPoints;
27 int m_CurX; 27 int m_CurX;
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 const CFX_PathData* CFX_Font::LoadGlyphPath(uint32_t glyph_index, 705 const CFX_PathData* CFX_Font::LoadGlyphPath(uint32_t glyph_index,
706 int dest_width) const { 706 int dest_width) const {
707 return GetFaceCache()->LoadGlyphPath(this, glyph_index, dest_width); 707 return GetFaceCache()->LoadGlyphPath(this, glyph_index, dest_width);
708 } 708 }
709 709
710 #ifdef _SKIA_SUPPORT_ 710 #ifdef _SKIA_SUPPORT_
711 CFX_TypeFace* CFX_Font::GetDeviceCache() const { 711 CFX_TypeFace* CFX_Font::GetDeviceCache() const {
712 return GetFaceCache()->GetDeviceCache(this); 712 return GetFaceCache()->GetDeviceCache(this);
713 } 713 }
714 #endif 714 #endif
OLDNEW
« no previous file with comments | « core/fxge/ge/cfx_folderfontinfo.cpp ('k') | core/fxge/ge/cfx_fontcache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698