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

Side by Side Diff: src/ports/SkFontHost_mac.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_FreeType.cpp ('k') | src/ports/SkFontHost_win.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 <vector> 9 #include <vector>
10 #ifdef SK_BUILD_FOR_MAC 10 #ifdef SK_BUILD_FOR_MAC
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after
1825 { 1825 {
1826 rec->fMaskFormat = SkMask::kA8_Format; 1826 rec->fMaskFormat = SkMask::kA8_Format;
1827 // Render the glyphs as close as possible to what was requested. 1827 // Render the glyphs as close as possible to what was requested.
1828 // The above turns off subpixel rendering, but the user requested it. 1828 // The above turns off subpixel rendering, but the user requested it.
1829 // Normal hinting will cause the A8 masks to be generated from CoreGraph ics subpixel masks. 1829 // Normal hinting will cause the A8 masks to be generated from CoreGraph ics subpixel masks.
1830 // See comments below for more details. 1830 // See comments below for more details.
1831 rec->setHinting(SkPaint::kNormal_Hinting); 1831 rec->setHinting(SkPaint::kNormal_Hinting);
1832 } 1832 }
1833 1833
1834 unsigned flagsWeDontSupport = SkScalerContext::kDevKernText_Flag | 1834 unsigned flagsWeDontSupport = SkScalerContext::kDevKernText_Flag |
1835 SkScalerContext::kAutohinting_Flag | 1835 SkScalerContext::kForceAutohinting_Flag |
1836 SkScalerContext::kLCD_BGROrder_Flag | 1836 SkScalerContext::kLCD_BGROrder_Flag |
1837 SkScalerContext::kLCD_Vertical_Flag; 1837 SkScalerContext::kLCD_Vertical_Flag;
1838 1838
1839 rec->fFlags &= ~flagsWeDontSupport; 1839 rec->fFlags &= ~flagsWeDontSupport;
1840 1840
1841 bool lcdSupport = supports_LCD(); 1841 bool lcdSupport = supports_LCD();
1842 1842
1843 // Only two levels of hinting are supported. 1843 // Only two levels of hinting are supported.
1844 // kNo_Hinting means avoid CoreGraphics outline dilation. 1844 // kNo_Hinting means avoid CoreGraphics outline dilation.
1845 // kNormal_Hinting means CoreGraphics outline dilation is allowed. 1845 // kNormal_Hinting means CoreGraphics outline dilation is allowed.
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
2313 return create_typeface(NULL, familyName, (SkTypeface::Style)styleBits); 2313 return create_typeface(NULL, familyName, (SkTypeface::Style)styleBits);
2314 } 2314 }
2315 }; 2315 };
2316 2316
2317 /////////////////////////////////////////////////////////////////////////////// 2317 ///////////////////////////////////////////////////////////////////////////////
2318 2318
2319 SkFontMgr* SkFontMgr::Factory() { 2319 SkFontMgr* SkFontMgr::Factory() {
2320 return SkNEW(SkFontMgr_Mac); 2320 return SkNEW(SkFontMgr_Mac);
2321 } 2321 }
2322 #endif 2322 #endif
OLDNEW
« no previous file with comments | « src/ports/SkFontHost_FreeType.cpp ('k') | src/ports/SkFontHost_win.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698