Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkTextFormatParams.h
Go to the documentation of this file.
1/*
2 * Copyright 2010 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7#ifndef SkTextFormatParams_DEFINES
8#define SkTextFormatParams_DEFINES
9
12
13#include <iterator>
14
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.
20 SK_Scalar1*9,
21 SK_Scalar1*36,
22};
24 SK_Scalar1/24,
25 SK_Scalar1/32,
26};
27static_assert(std::size(kStdFakeBoldInterpKeys) == std::size(kStdFakeBoldInterpValues),
28 "mismatched_array_size");
30
31#endif //SkTextFormatParams_DEFINES
#define SK_Scalar1
Definition SkScalar.h:18
static const SkScalar kStdFakeBoldInterpValues[]
static const int kStdFakeBoldInterpLength
static const SkScalar kStdFakeBoldInterpKeys[]
float SkScalar
Definition extension.cpp:12