diff --git a/GNUmakefile b/GNUmakefile index 782772a..08273f8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -171,7 +171,7 @@ install: lib cp -rf doc/* $(PREFIX)/share/doc/milsko/ format: - clang-format --verbose -i `find src include examples tools "(" -name "*.c" -or -name "*.h" ")" -and -not -name "stb_*.h"` + clang-format --verbose -i `find src include examples tools "(" -name "*.c" -or -name "*.h" ")" -and -not -name "stb_*.h" -and -not -name "ttf.c" -and -not -name "boldttf.c" -and -not -name "font.c" -and -not -name "boldfont.c"` perltidy -b -bext='/' --paren-tightness=2 `find tools -name "*.pl"` src/$(LIB)Mw$(SO): $(L_OBJS) diff --git a/src/text/draw.c b/src/text/draw.c index d9b1439..f6c613d 100644 --- a/src/text/draw.c +++ b/src/text/draw.c @@ -82,7 +82,7 @@ static void bitmap_MwDrawText(MwWidget handle, MwPoint* point, const char* text, #ifdef USE_STB_TRUETYPE static int ttf_MwDrawText(MwWidget handle, MwPoint* point, const char* text, int bold, int align, MwLLColor color) { - ttf_t* ttf = MwGetVoid(handle, MwNfont); + ttf_t* ttf = MwGetVoid(handle, bold ? MwNboldFont : MwNfont); MwLLColor base; unsigned char* px; int tw, th;