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

Side by Side Diff: core/fxge/android/fpf_skiafontmgr.h

Issue 2059553002: [Android] Add support for standalone PDFium gn build on Android. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 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 | « build_overrides/build.gni ('k') | core/fxge/android/fpf_skiafontmgr.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 #ifndef CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ 7 #ifndef CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_
8 #define CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ 8 #define CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_
9 9
10 #include "core/fxcrt/include/fx_system.h" 10 #include "core/fxcrt/include/fx_system.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 uint32_t dwMatch = 0); 104 uint32_t dwMatch = 0);
105 105
106 FX_BOOL InitFTLibrary(); 106 FX_BOOL InitFTLibrary();
107 FXFT_Face GetFontFace(IFX_FileRead* pFileRead, int32_t iFaceIndex = 0); 107 FXFT_Face GetFontFace(IFX_FileRead* pFileRead, int32_t iFaceIndex = 0);
108 FXFT_Face GetFontFace(const CFX_ByteStringC& bsFile, int32_t iFaceIndex = 0); 108 FXFT_Face GetFontFace(const CFX_ByteStringC& bsFile, int32_t iFaceIndex = 0);
109 FXFT_Face GetFontFace(const uint8_t* pBuffer, 109 FXFT_Face GetFontFace(const uint8_t* pBuffer,
110 size_t szBuffer, 110 size_t szBuffer,
111 int32_t iFaceIndex = 0); 111 int32_t iFaceIndex = 0);
112 112
113 protected: 113 protected:
114 void ScanPath(const CFX_ByteStringC& path); 114 void ScanPath(const CFX_ByteString& path);
115 void ScanFile(const CFX_ByteStringC& file); 115 void ScanFile(const CFX_ByteString& file);
116 void ReportFace(FXFT_Face face, CFPF_SkiaFontDescriptor* pFontDesc); 116 void ReportFace(FXFT_Face face, CFPF_SkiaFontDescriptor* pFontDesc);
117 void OutputSystemFonts(); 117 void OutputSystemFonts();
118 118
119 FX_BOOL m_bLoaded; 119 FX_BOOL m_bLoaded;
120 FXFT_Library m_FTLibrary; 120 FXFT_Library m_FTLibrary;
121 std::vector<CFPF_SkiaFontDescriptor*> m_FontFaces; 121 std::vector<CFPF_SkiaFontDescriptor*> m_FontFaces;
122 std::map<uint32_t, CFPF_SkiaFont*> m_FamilyFonts; 122 std::map<uint32_t, CFPF_SkiaFont*> m_FamilyFonts;
123 }; 123 };
124 124
125 #endif // _FX_OS_ == _FX_ANDROID_ 125 #endif // _FX_OS_ == _FX_ANDROID_
126 126
127 #endif // CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_ 127 #endif // CORE_FXGE_ANDROID_FPF_SKIAFONTMGR_H_
OLDNEW
« no previous file with comments | « build_overrides/build.gni ('k') | core/fxge/android/fpf_skiafontmgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698