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

Side by Side Diff: xfa/fgas/font/fgas_gefont.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 | « xfa/fgas/font/fgas_font.h ('k') | xfa/fgas/font/fgas_stdfontmgr.h » ('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 "xfa/fgas/font/fgas_gefont.h" 7 #include "xfa/fgas/font/fgas_gefont.h"
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
11 11
12 #include "core/fxge/include/cfx_substfont.h" 12 #include "core/fxge/cfx_substfont.h"
13 #include "core/fxge/include/cfx_unicodeencoding.h" 13 #include "core/fxge/cfx_unicodeencoding.h"
14 #include "core/fxge/include/cfx_unicodeencodingex.h" 14 #include "core/fxge/cfx_unicodeencodingex.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/fxfa/include/xfa_fontmgr.h" 17 #include "xfa/fxfa/include/xfa_fontmgr.h"
18 18
19 // static 19 // static
20 CFGAS_GEFont* CFGAS_GEFont::LoadFont(const FX_WCHAR* pszFontFamily, 20 CFGAS_GEFont* CFGAS_GEFont::LoadFont(const FX_WCHAR* pszFontFamily,
21 uint32_t dwFontStyles, 21 uint32_t dwFontStyles,
22 uint16_t wCodePage, 22 uint16_t wCodePage,
23 IFGAS_FontMgr* pFontMgr) { 23 IFGAS_FontMgr* pFontMgr) {
24 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_ 24 #if _FXM_PLATFORM_ != _FXM_PLATFORM_WINDOWS_
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 } 485 }
486 if (m_pRectArray) { 486 if (m_pRectArray) {
487 m_pRectArray->RemoveAll(FALSE); 487 m_pRectArray->RemoveAll(FALSE);
488 } 488 }
489 } 489 }
490 CFGAS_GEFont* CFGAS_GEFont::GetSubstFont(int32_t iGlyphIndex) const { 490 CFGAS_GEFont* CFGAS_GEFont::GetSubstFont(int32_t iGlyphIndex) const {
491 iGlyphIndex = ((uint32_t)iGlyphIndex) >> 24; 491 iGlyphIndex = ((uint32_t)iGlyphIndex) >> 24;
492 return iGlyphIndex == 0 ? const_cast<CFGAS_GEFont*>(this) 492 return iGlyphIndex == 0 ? const_cast<CFGAS_GEFont*>(this)
493 : m_SubstFonts[iGlyphIndex - 1]; 493 : m_SubstFonts[iGlyphIndex - 1];
494 } 494 }
OLDNEW
« no previous file with comments | « xfa/fgas/font/fgas_font.h ('k') | xfa/fgas/font/fgas_stdfontmgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698