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

Side by Side Diff: src/ports/SkFontHost_win.cpp

Issue 411313002: Colored Emoji not drawn in Chrome if font style is set as Bold (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comment fixes Created 6 years, 3 months 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 | « src/ports/SkFontHost_FreeType.cpp ('k') | 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 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkAdvancedTypefaceMetrics.h" 9 #include "SkAdvancedTypefaceMetrics.h"
10 #include "SkBase64.h" 10 #include "SkBase64.h"
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 xform.eDx = 0; 724 xform.eDx = 0;
725 xform.eDy = 0; 725 xform.eDy = 0;
726 726
727 // MAT2 is row major, right handed (y up). 727 // MAT2 is row major, right handed (y up).
728 fMat22.eM11 = float2FIXED(xform.eM11); 728 fMat22.eM11 = float2FIXED(xform.eM11);
729 fMat22.eM12 = float2FIXED(-xform.eM12); 729 fMat22.eM12 = float2FIXED(-xform.eM12);
730 fMat22.eM21 = float2FIXED(-xform.eM21); 730 fMat22.eM21 = float2FIXED(-xform.eM21);
731 fMat22.eM22 = float2FIXED(xform.eM22); 731 fMat22.eM22 = float2FIXED(xform.eM22);
732 732
733 if (needToRenderWithSkia(fRec)) { 733 if (needToRenderWithSkia(fRec)) {
734 this->forceGenerateImageFromPath(); 734 this->setGenerateImageFromPath(true);
735 } 735 }
736 736
737 // Create a hires matrix if we need linear metrics. 737 // Create a hires matrix if we need linear metrics.
738 if (this->isSubpixel()) { 738 if (this->isSubpixel()) {
739 OUTLINETEXTMETRIC otm; 739 OUTLINETEXTMETRIC otm;
740 UINT success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); 740 UINT success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm);
741 if (0 == success) { 741 if (0 == success) {
742 call_ensure_accessible(lf); 742 call_ensure_accessible(lf);
743 success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm); 743 success = GetOutlineTextMetrics(fDDC, sizeof(otm), &otm);
744 } 744 }
(...skipping 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after
2587 2587
2588 private: 2588 private:
2589 SkTDArray<ENUMLOGFONTEX> fLogFontArray; 2589 SkTDArray<ENUMLOGFONTEX> fLogFontArray;
2590 }; 2590 };
2591 2591
2592 /////////////////////////////////////////////////////////////////////////////// 2592 ///////////////////////////////////////////////////////////////////////////////
2593 2593
2594 SkFontMgr* SkFontMgr_New_GDI() { 2594 SkFontMgr* SkFontMgr_New_GDI() {
2595 return SkNEW(SkFontMgrGDI); 2595 return SkNEW(SkFontMgrGDI);
2596 } 2596 }
OLDNEW
« no previous file with comments | « src/ports/SkFontHost_FreeType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698