2 * Copyright 2010 The Android Open Source Project
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
9 #ifndef SkTextFormatParams_DEFINES
10 #define SkTextFormatParams_DEFINES
12 #include "include/core/SkScalar.h"
13 #include "include/core/SkTypes.h"
15 // The fraction of text size to embolden fake bold text scales with text size.
16 // At 9 points or below, the stroke width is increased by text size / 24.
17 // At 36 points and above, it is increased by text size / 32. In between,
18 // it is interpolated between those values.
19 static const SkScalar kStdFakeBoldInterpKeys[] = {
23 static const SkScalar kStdFakeBoldInterpValues[] = {
27 static_assert(SK_ARRAY_COUNT(kStdFakeBoldInterpKeys) == SK_ARRAY_COUNT(kStdFakeBoldInterpValues),
28 "mismatched_array_size");
29 static const int kStdFakeBoldInterpLength = SK_ARRAY_COUNT(kStdFakeBoldInterpKeys);
31 #endif //SkTextFormatParams_DEFINES