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

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

Issue 139943004: Clarify kAutohinting is kForceAutohinting. (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Update all platforms. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « src/ports/SkFontHost_mac.cpp ('k') | src/ports/SkFontHost_win_dw.cpp » ('j') | 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 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after
2384 2384
2385 void LogFontTypeface::onFilterRec(SkScalerContextRec* rec) const { 2385 void LogFontTypeface::onFilterRec(SkScalerContextRec* rec) const {
2386 if (rec->fFlags & SkScalerContext::kLCD_BGROrder_Flag || 2386 if (rec->fFlags & SkScalerContext::kLCD_BGROrder_Flag ||
2387 rec->fFlags & SkScalerContext::kLCD_Vertical_Flag) 2387 rec->fFlags & SkScalerContext::kLCD_Vertical_Flag)
2388 { 2388 {
2389 rec->fMaskFormat = SkMask::kA8_Format; 2389 rec->fMaskFormat = SkMask::kA8_Format;
2390 rec->fFlags |= SkScalerContext::kGenA8FromLCD_Flag; 2390 rec->fFlags |= SkScalerContext::kGenA8FromLCD_Flag;
2391 } 2391 }
2392 2392
2393 unsigned flagsWeDontSupport = SkScalerContext::kDevKernText_Flag | 2393 unsigned flagsWeDontSupport = SkScalerContext::kDevKernText_Flag |
2394 SkScalerContext::kAutohinting_Flag | 2394 SkScalerContext::kForceAutohinting_Flag |
2395 SkScalerContext::kEmbeddedBitmapText_Flag | 2395 SkScalerContext::kEmbeddedBitmapText_Flag |
2396 SkScalerContext::kEmbolden_Flag | 2396 SkScalerContext::kEmbolden_Flag |
2397 SkScalerContext::kLCD_BGROrder_Flag | 2397 SkScalerContext::kLCD_BGROrder_Flag |
2398 SkScalerContext::kLCD_Vertical_Flag; 2398 SkScalerContext::kLCD_Vertical_Flag;
2399 rec->fFlags &= ~flagsWeDontSupport; 2399 rec->fFlags &= ~flagsWeDontSupport;
2400 2400
2401 SkPaint::Hinting h = rec->getHinting(); 2401 SkPaint::Hinting h = rec->getHinting();
2402 switch (h) { 2402 switch (h) {
2403 case SkPaint::kNo_Hinting: 2403 case SkPaint::kNo_Hinting:
2404 break; 2404 break;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
2600 2600
2601 private: 2601 private:
2602 SkTDArray<ENUMLOGFONTEX> fLogFontArray; 2602 SkTDArray<ENUMLOGFONTEX> fLogFontArray;
2603 }; 2603 };
2604 2604
2605 /////////////////////////////////////////////////////////////////////////////// 2605 ///////////////////////////////////////////////////////////////////////////////
2606 2606
2607 SkFontMgr* SkFontMgr_New_GDI() { 2607 SkFontMgr* SkFontMgr_New_GDI() {
2608 return SkNEW(SkFontMgrGDI); 2608 return SkNEW(SkFontMgrGDI);
2609 } 2609 }
OLDNEW
« no previous file with comments | « src/ports/SkFontHost_mac.cpp ('k') | src/ports/SkFontHost_win_dw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698