| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2010 The Android Open Source Project | 3 * Copyright 2010 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 | 9 |
| 10 #ifndef SkTextFormatParams_DEFINES | 10 #ifndef SkTextFormatParams_DEFINES |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // The fraction of text size to embolden fake bold text scales with text size. | 23 // The fraction of text size to embolden fake bold text scales with text size. |
| 24 // At 9 points or below, the stroke width is increased by text size / 24. | 24 // At 9 points or below, the stroke width is increased by text size / 24. |
| 25 // At 36 points and above, it is increased by text size / 32. In between, | 25 // At 36 points and above, it is increased by text size / 32. In between, |
| 26 // it is interpolated between those values. | 26 // it is interpolated between those values. |
| 27 static const SkScalar kStdFakeBoldInterpKeys[] = { | 27 static const SkScalar kStdFakeBoldInterpKeys[] = { |
| 28 SK_Scalar1*9, | 28 SK_Scalar1*9, |
| 29 SK_Scalar1*36, | 29 SK_Scalar1*36, |
| 30 }; | 30 }; |
| 31 static const SkScalar kStdFakeBoldInterpValues[] = { | 31 static const SkScalar kStdFakeBoldInterpValues[] = { |
| 32 SK_Scalar1/24, | 32 SK_Scalar1/24, |
| 33 SK_Scalar1/32 | 33 SK_Scalar1/32, |
| 34 }; | 34 }; |
| 35 SK_COMPILE_ASSERT(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == | 35 static_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeB
oldInterpValues), |
| 36 SK_ARRAY_COUNT(kStdFakeBoldInterpValues), | 36 "mismatched_array_size"); |
| 37 mismatched_array_size); | 37 static const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKey
s); |
| 38 static const int kStdFakeBoldInterpLength = | |
| 39 SK_ARRAY_COUNT(kStdFakeBoldInterpKeys); | |
| 40 | 38 |
| 41 #endif //SkTextFormatParams_DEFINES | 39 #endif //SkTextFormatParams_DEFINES |
| OLD | NEW |