blob: 9fd80330e00d39c94b30e08ae7f1ffe30191f2a7 [file] [log] [blame]
* Copyright 2010 The Android Open Source Project
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
#ifndef SkTextFormatParams_DEFINES
#define SkTextFormatParams_DEFINES
#include "include/core/SkScalar.h"
#include "include/core/SkTypes.h"
#include <iterator>
// The fraction of text size to embolden fake bold text scales with text size.
// At 9 points or below, the stroke width is increased by text size / 24.
// At 36 points and above, it is increased by text size / 32. In between,
// it is interpolated between those values.
static const SkScalar kStdFakeBoldInterpKeys[] = {
static const SkScalar kStdFakeBoldInterpValues[] = {
static_assert(std::size(kStdFakeBoldInterpKeys) == std::size(kStdFakeBoldInterpValues),
static const int kStdFakeBoldInterpLength = std::size(kStdFakeBoldInterpKeys);
#endif //SkTextFormatParams_DEFINES