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