9 paint.setStyle(SkPaint::kStroke_Style);
10 paint.setStrokeWidth(4);
11 paint.setAntiAlias(
true);
21 paint.setStyle(SkPaint::kFill_Style);
22 paint.setAntiAlias(
true);
34 SkFontMgr_New_FontConfig(
nullptr, SkFontScanner_Make_FreeType());
38 fontMgr->legacyMakeTypeface(
nullptr, SkFontStyle::Normal());
42 font.setSubpixel(
true);
45 font.setEmbolden(
true);
52 font.setSubpixel(
true);
61 font.setSubpixel(
true);
70 font.setSubpixel(
true);
81 const float scaling = std::min(xScale, yScale) * std::min(aspectX, aspectY);
Variant
The visual display variant of the text.
static void recalculateFontSizes(float aspectX, float aspectY, float xScale, float yScale)
Recalculates the font sizes.
static sk_sp< SkTypeface > typeface
The typeface for the text font.
static SkFont menuHeadlineFont
The font for the menu headline font.
static sk_sp< SkFontMgr > fontMgr
The font manager.
static SkPaint textFontFillPaint
The paint for the text font fill.
static SkFont menuCaptionFont
The font for the menu caption font.
static const SkFont & getFontForVariant(const business_logic::components::UIText::Variant &variant)
Gets the font for the given variant.
static SkPaint textFontStrokePaint
The paint for the text font stroke.
static SkFont captionFont
The font for the caption font.
static SkFont menuChoiceFont
The font for the menu choice font.
constexpr int MENU_CHOICE_FONT_SIZE_BASE
constexpr int CAPTION_FONT_SIZE_BASE
constexpr int MENU_CAPTION_FONT_SIZE_BASE
constexpr int MENU_HEADLINE_FONT_SIZE_BASE
const SkColor TEXT_OUTLINE_COLOR
The GUI renderer and renderer-supporting implementation module.