- // User Vera Mono 9 by default for now
- printf("%d %s", drawGetStringWidth(&dejaVuSans9ptFontInfo, data), CFG_PRINTF_NEWLINE);
+ #if CFG_TFTLCD_USEAAFONTS
+ switch (font)
+ {
+ default: // Only enough space for one font for now
+ printf("%d %s", aafontsGetStringWidth(&THEME_FONT, data), CFG_PRINTF_NEWLINE);
+ break;
+ }
+ #else
+ switch (font)
+ {
+ default: // Only enough space for one font for now
+ printf("%d %s", fontsGetStringWidth(&THEME_FONT, data), CFG_PRINTF_NEWLINE);
+ break;
+ }
+ #endif