OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |