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 "../../../include/fxcrt/fx_ext.h" | 7 #include "core/include/fxcrt/fx_ext.h" |
8 #include "fx_fpf.h" | 8 #include "fx_fpf.h" |
| 9 |
9 #if _FX_OS_ == _FX_ANDROID_ | 10 #if _FX_OS_ == _FX_ANDROID_ |
10 #define FPF_SKIAMATCHWEIGHT_NAME1 62 | 11 #define FPF_SKIAMATCHWEIGHT_NAME1 62 |
11 #define FPF_SKIAMATCHWEIGHT_NAME2 60 | 12 #define FPF_SKIAMATCHWEIGHT_NAME2 60 |
12 #define FPF_SKIAMATCHWEIGHT_1 16 | 13 #define FPF_SKIAMATCHWEIGHT_1 16 |
13 #define FPF_SKIAMATCHWEIGHT_2 8 | 14 #define FPF_SKIAMATCHWEIGHT_2 8 |
14 #include "fpf_skiafontmgr.h" | 15 #include "fpf_skiafontmgr.h" |
15 #include "fpf_skiafont.h" | 16 #include "fpf_skiafont.h" |
16 #ifdef __cplusplus | 17 #ifdef __cplusplus |
17 extern "C" { | 18 extern "C" { |
18 #endif | 19 #endif |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 } | 522 } |
522 if (pOS2 && (pOS2->ulCodePageRange1 & (1 << 31))) { | 523 if (pOS2 && (pOS2->ulCodePageRange1 & (1 << 31))) { |
523 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC; | 524 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC; |
524 } | 525 } |
525 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2); | 526 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2); |
526 pFontDesc->m_iFaceIndex = face->face_index; | 527 pFontDesc->m_iFaceIndex = face->face_index; |
527 pFontDesc->m_iGlyphNum = face->num_glyphs; | 528 pFontDesc->m_iGlyphNum = face->num_glyphs; |
528 } | 529 } |
529 void CFPF_SkiaFontMgr::OutputSystemFonts() {} | 530 void CFPF_SkiaFontMgr::OutputSystemFonts() {} |
530 #endif | 531 #endif |
OLD | NEW |