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

Side by Side Diff: core/src/fxge/android/fpf_skiafontmgr.cpp

Issue 728943002: XFA: merge patch from issue 726033002 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: Created 6 years, 1 month 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 | « no previous file | no next file » | 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 "fx_fpf.h" 7 #include "fx_fpf.h"
8 #if _FX_OS_ == _FX_ANDROID_ 8 #if _FX_OS_ == _FX_ANDROID_
9 #define FPF_SKIAMATCHWEIGHT_NAME1 62 9 #define FPF_SKIAMATCHWEIGHT_NAME1 62
10 #define FPF_SKIAMATCHWEIGHT_NAME2 60 10 #define FPF_SKIAMATCHWEIGHT_NAME2 60
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 FX_INT32 iMid = (iStart + iEnd) / 2; 70 FX_INT32 iMid = (iStart + iEnd) / 2;
71 FPF_LPCSKIAFONTMAP pItem = &g_SkiaFontmap[iMid]; 71 FPF_LPCSKIAFONTMAP pItem = &g_SkiaFontmap[iMid];
72 if (dwHash < pItem->dwFamily) { 72 if (dwHash < pItem->dwFamily) {
73 iEnd = iMid - 1; 73 iEnd = iMid - 1;
74 } else if (dwHash > pItem->dwFamily) { 74 } else if (dwHash > pItem->dwFamily) {
75 iStart = iMid + 1; 75 iStart = iMid + 1;
76 } else { 76 } else {
77 return pItem->dwSubSt; 77 return pItem->dwSubSt;
78 } 78 }
79 } 79 }
80 return NULL; 80 return 0;
81 } 81 }
82 static const FPF_SKIAFONTMAP g_SkiaSansFontMap[] = { 82 static const FPF_SKIAFONTMAP g_SkiaSansFontMap[] = {
83 {0x58c5083, 0xd5b8d10f}, 83 {0x58c5083, 0xd5b8d10f},
84 {0x14ee2d13, 0xd5b8d10f}, 84 {0x14ee2d13, 0xd5b8d10f},
85 {0x779ce19d, 0xd5b8d10f}, 85 {0x779ce19d, 0xd5b8d10f},
86 {0xcb7a04c8, 0xd5b8d10f}, 86 {0xcb7a04c8, 0xd5b8d10f},
87 {0xfb4ce0de, 0xd5b8d10f}, 87 {0xfb4ce0de, 0xd5b8d10f},
88 }; 88 };
89 FX_DWORD FPF_SkiaGetSansFont(FX_DWORD dwHash) 89 FX_DWORD FPF_SkiaGetSansFont(FX_DWORD dwHash)
90 { 90 {
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
552 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC; 552 pFontDesc->m_dwStyle |= FXFONT_SYMBOLIC;
553 } 553 }
554 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2); 554 pFontDesc->m_dwCharsets = FPF_SkiaGetFaceCharset(pOS2);
555 pFontDesc->m_iFaceIndex = face->face_index; 555 pFontDesc->m_iFaceIndex = face->face_index;
556 pFontDesc->m_iGlyphNum = face->num_glyphs; 556 pFontDesc->m_iGlyphNum = face->num_glyphs;
557 } 557 }
558 void CFPF_SkiaFontMgr::OutputSystemFonts() 558 void CFPF_SkiaFontMgr::OutputSystemFonts()
559 { 559 {
560 } 560 }
561 #endif 561 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698