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/fxcrt/include/fx_system.h" | 7 #include "core/fxcrt/include/fx_system.h" |
8 | 8 |
9 #if _FX_OS_ == _FX_ANDROID_ | 9 #if _FX_OS_ == _FX_ANDROID_ |
10 | 10 |
(...skipping 21 matching lines...) Expand all Loading... |
32 void CFPF_SkiaFont::Release() { | 32 void CFPF_SkiaFont::Release() { |
33 if (--m_dwRefCount == 0) | 33 if (--m_dwRefCount == 0) |
34 delete this; | 34 delete this; |
35 } | 35 } |
36 | 36 |
37 CFPF_SkiaFont* CFPF_SkiaFont::Retain() { | 37 CFPF_SkiaFont* CFPF_SkiaFont::Retain() { |
38 m_dwRefCount++; | 38 m_dwRefCount++; |
39 return this; | 39 return this; |
40 } | 40 } |
41 | 41 |
42 FPF_HFONT CFPF_SkiaFont::GetHandle() { | |
43 return nullptr; | |
44 } | |
45 | |
46 CFX_ByteString CFPF_SkiaFont::GetFamilyName() { | 42 CFX_ByteString CFPF_SkiaFont::GetFamilyName() { |
47 if (!m_Face) | 43 if (!m_Face) |
48 return CFX_ByteString(); | 44 return CFX_ByteString(); |
49 return CFX_ByteString(FXFT_Get_Face_Family_Name(m_Face)); | 45 return CFX_ByteString(FXFT_Get_Face_Family_Name(m_Face)); |
50 } | 46 } |
51 | 47 |
52 CFX_ByteString CFPF_SkiaFont::GetPsName() { | 48 CFX_ByteString CFPF_SkiaFont::GetPsName() { |
53 if (!m_Face) | 49 if (!m_Face) |
54 return CFX_ByteString(); | 50 return CFX_ByteString(); |
55 return FXFT_Get_Postscript_Name(m_Face); | 51 return FXFT_Get_Postscript_Name(m_Face); |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 | 210 |
215 m_dwStyle = dwStyle; | 211 m_dwStyle = dwStyle; |
216 m_uCharset = uCharset; | 212 m_uCharset = uCharset; |
217 m_pFontMgr = pFontMgr; | 213 m_pFontMgr = pFontMgr; |
218 m_pFontDes = pFontDes; | 214 m_pFontDes = pFontDes; |
219 m_dwRefCount = 1; | 215 m_dwRefCount = 1; |
220 return TRUE; | 216 return TRUE; |
221 } | 217 } |
222 | 218 |
223 #endif // _FX_OS_ == _FX_ANDROID_ | 219 #endif // _FX_OS_ == _FX_ANDROID_ |
OLD | NEW |