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/fx_system.h" | 7 #include "core/fxcrt/fx_system.h" |
Lei Zhang
2016/10/14 19:46:05
fpf_skiafontmgr.h should come fisrt instead.
npm
2016/10/17 15:02:25
Done.
| |
8 | 8 |
9 #if _FX_OS_ == _FX_ANDROID_ | |
10 | |
11 #define FPF_SKIAMATCHWEIGHT_NAME1 62 | 9 #define FPF_SKIAMATCHWEIGHT_NAME1 62 |
12 #define FPF_SKIAMATCHWEIGHT_NAME2 60 | 10 #define FPF_SKIAMATCHWEIGHT_NAME2 60 |
13 #define FPF_SKIAMATCHWEIGHT_1 16 | 11 #define FPF_SKIAMATCHWEIGHT_1 16 |
14 #define FPF_SKIAMATCHWEIGHT_2 8 | 12 #define FPF_SKIAMATCHWEIGHT_2 8 |
15 | 13 |
16 #include "core/fxcrt/fx_ext.h" | 14 #include "core/fxcrt/fx_ext.h" |
17 #include "core/fxge/android/fpf_skiafont.h" | 15 #include "core/fxge/android/fpf_skiafont.h" |
18 #include "core/fxge/android/fpf_skiafontmgr.h" | 16 #include "core/fxge/android/fpf_skiafontmgr.h" |
19 #include "core/fxge/fx_freetype.h" | 17 #include "core/fxge/fx_freetype.h" |
20 | 18 |
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
516 } | 514 } |
517 if (pOS2 && (pOS2->ulCodePageRange1 & (1 << 31))) { | 515 if (pOS2 && (pOS2->ulCodePageRange1 & (1 << 31))) { |
518 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC; | 516 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC; |
519 } | 517 } |
520 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2); | 518 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2); |
521 pFontDesc->m_iFaceIndex = face->face_index; | 519 pFontDesc->m_iFaceIndex = face->face_index; |
522 pFontDesc->m_iGlyphNum = face->num_glyphs; | 520 pFontDesc->m_iGlyphNum = face->num_glyphs; |
523 } | 521 } |
524 | 522 |
525 void CFPF_SkiaFontMgr::OutputSystemFonts() {} | 523 void CFPF_SkiaFontMgr::OutputSystemFonts() {} |
526 #endif | |
OLD | NEW |