Browse Source

Fix font size with new stb_truetype version.

pull/114/head
Andrew Belt 4 years ago
parent
commit
27d10195ee
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Braids.cpp

+ 2
- 2
src/Braids.cpp View File

@@ -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);


Loading…
Cancel
Save