From 27d10195ee4fbae7e994298da64d6945670a80d0 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 1 Jun 2021 16:44:46 -0400 Subject: [PATCH] Fix font size with new stb_truetype version. --- src/Braids.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Braids.cpp b/src/Braids.cpp index 632e190..fe300ba 100644 --- a/src/Braids.cpp +++ b/src/Braids.cpp @@ -258,11 +258,11 @@ struct BraidsDisplay : TransparentWidget { // Text nvgGlobalAlpha(args.vg, 1.0); - nvgFontSize(args.vg, 36); + nvgFontSize(args.vg, 48); nvgFontFaceId(args.vg, font->handle); nvgTextLetterSpacing(args.vg, 2.5); - Vec textPos = Vec(10, 48); + Vec textPos = Vec(11, 47); NVGcolor textColor = nvgRGB(0xaf, 0xd2, 0x2c); nvgFillColor(args.vg, nvgTransRGBA(textColor, 16)); nvgText(args.vg, textPos.x, textPos.y, "~~~~", NULL);