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

Side by Side Diff: xfa/fgas/font/cfgas_fontmgr.cpp

Issue 2524493002: Clean up CFGAS_GEFont (Closed)
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 PDFium Authors. All rights reserved. 1 // Copyright 2015 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 "xfa/fgas/font/cfgas_fontmgr.h" 7 #include "xfa/fgas/font/cfgas_fontmgr.h"
8 8
9 #include "core/fxcrt/fx_stream.h" 9 #include "core/fxcrt/fx_stream.h"
10 #include "core/fxge/cfx_fontmapper.h" 10 #include "core/fxge/cfx_fontmapper.h"
11 #include "core/fxge/cfx_fontmgr.h" 11 #include "core/fxge/cfx_fontmgr.h"
12 #include "core/fxge/cfx_gemodule.h" 12 #include "core/fxge/cfx_gemodule.h"
13 #include "core/fxge/ifx_systemfontinfo.h" 13 #include "core/fxge/ifx_systemfontinfo.h"
14 #include "third_party/base/ptr_util.h" 14 #include "third_party/base/ptr_util.h"
15 #include "xfa/fgas/crt/fgas_codepage.h" 15 #include "xfa/fgas/crt/fgas_codepage.h"
16 #include "xfa/fgas/font/fgas_fontutils.h" 16 #include "xfa/fgas/font/fgas_fontutils.h"
17 #include "xfa/fgas/font/fgas_gefont.h" 17 #include "xfa/fgas/font/cfgas_gefont.h"
dsinclair 2016/11/21 21:13:55 Sort.
npm 2016/11/21 21:29:38 Done.
18 18
19 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 19 #if _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
20 20
21 namespace { 21 namespace {
22 22
23 int32_t GetSimilarityScore(FX_FONTDESCRIPTOR const* pFont, 23 int32_t GetSimilarityScore(FX_FONTDESCRIPTOR const* pFont,
24 uint32_t dwFontStyles) { 24 uint32_t dwFontStyles) {
25 int32_t iValue = 0; 25 int32_t iValue = 0;
26 if ((dwFontStyles & FX_FONTSTYLE_Symbolic) == 26 if ((dwFontStyles & FX_FONTSTYLE_Symbolic) ==
27 (pFont->dwFontStyles & FX_FONTSTYLE_Symbolic)) { 27 (pFont->dwFontStyles & FX_FONTSTYLE_Symbolic)) {
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after
1204 } 1204 }
1205 1205
1206 int32_t CFGAS_FontMgr::IsPartName(const CFX_WideString& Name1, 1206 int32_t CFGAS_FontMgr::IsPartName(const CFX_WideString& Name1,
1207 const CFX_WideString& Name2) { 1207 const CFX_WideString& Name2) {
1208 if (Name1.Find(Name2.c_str()) != -1) 1208 if (Name1.Find(Name2.c_str()) != -1)
1209 return 1; 1209 return 1;
1210 return 0; 1210 return 0;
1211 } 1211 }
1212 1212
1213 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_ 1213 #endif // _FXM_PLATFORM_ == _FXM_PLATFORM_WINDOWS_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698