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 "fx_fpf.h" | 7 #include "core/src/fxge/android/fx_fpf.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #if _FX_OS_ == _FX_ANDROID_ | 11 #if _FX_OS_ == _FX_ANDROID_ |
12 #include "fpf_skiafont.h" | 12 #include "core/src/fxge/android/fpf_skiafont.h" |
13 #include "fpf_skiafontmgr.h" | 13 #include "core/src/fxge/android/fpf_skiafontmgr.h" |
14 #define FPF_EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em) | 14 #define FPF_EM_ADJUST(em, a) (em == 0 ? (a) : (a)*1000 / em) |
15 CFPF_SkiaFont::CFPF_SkiaFont() | 15 CFPF_SkiaFont::CFPF_SkiaFont() |
16 : m_pFontMgr(NULL), | 16 : m_pFontMgr(NULL), |
17 m_pFontDes(NULL), | 17 m_pFontDes(NULL), |
18 m_Face(NULL), | 18 m_Face(NULL), |
19 m_dwStyle(0), | 19 m_dwStyle(0), |
20 m_uCharset(0), | 20 m_uCharset(0), |
21 m_dwRefCount(0) {} | 21 m_dwRefCount(0) {} |
22 CFPF_SkiaFont::~CFPF_SkiaFont() { | 22 CFPF_SkiaFont::~CFPF_SkiaFont() { |
23 if (m_Face) { | 23 if (m_Face) { |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 return FALSE; | 204 return FALSE; |
205 } | 205 } |
206 m_dwStyle = dwStyle; | 206 m_dwStyle = dwStyle; |
207 m_uCharset = uCharset; | 207 m_uCharset = uCharset; |
208 m_pFontMgr = pFontMgr; | 208 m_pFontMgr = pFontMgr; |
209 m_pFontDes = pFontDes; | 209 m_pFontDes = pFontDes; |
210 m_dwRefCount = 1; | 210 m_dwRefCount = 1; |
211 return TRUE; | 211 return TRUE; |
212 } | 212 } |
213 #endif | 213 #endif |
OLD | NEW |