OLD | NEW |
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/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/font/cpdf_font.h" |
10 #include "core/fxge/cfx_facecache.h" | 10 #include "core/fxge/cfx_facecache.h" |
11 #include "core/fxge/cfx_fontcache.h" | 11 #include "core/fxge/cfx_fontcache.h" |
12 #include "core/fxge/cfx_fontmgr.h" | 12 #include "core/fxge/cfx_fontmgr.h" |
13 #include "core/fxge/cfx_gemodule.h" | 13 #include "core/fxge/cfx_gemodule.h" |
14 #include "core/fxge/cfx_pathdata.h" | 14 #include "core/fxge/cfx_pathdata.h" |
15 #include "core/fxge/cfx_substfont.h" | 15 #include "core/fxge/cfx_substfont.h" |
16 #include "core/fxge/fx_freetype.h" | 16 #include "core/fxge/fx_freetype.h" |
17 #include "core/fxge/ge/fx_text_int.h" | 17 #include "core/fxge/ge/fx_text_int.h" |
18 #include "third_party/base/ptr_util.h" | 18 #include "third_party/base/ptr_util.h" |
19 | 19 |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
706 const CFX_PathData* CFX_Font::LoadGlyphPath(uint32_t glyph_index, | 706 const CFX_PathData* CFX_Font::LoadGlyphPath(uint32_t glyph_index, |
707 int dest_width) const { | 707 int dest_width) const { |
708 return GetFaceCache()->LoadGlyphPath(this, glyph_index, dest_width); | 708 return GetFaceCache()->LoadGlyphPath(this, glyph_index, dest_width); |
709 } | 709 } |
710 | 710 |
711 #ifdef _SKIA_SUPPORT_ | 711 #ifdef _SKIA_SUPPORT_ |
712 CFX_TypeFace* CFX_Font::GetDeviceCache() const { | 712 CFX_TypeFace* CFX_Font::GetDeviceCache() const { |
713 return GetFaceCache()->GetDeviceCache(this); | 713 return GetFaceCache()->GetDeviceCache(this); |
714 } | 714 } |
715 #endif | 715 #endif |
OLD | NEW |