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 2373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 } |
OLD | NEW |