Create more fonts
This commit is contained in:
@@ -54,7 +54,14 @@ void code(UWORD *blackImage, char* confName) {
|
||||
|
||||
GoString confStr = {confName, strlen(confName)};
|
||||
const char *code = getCode(confStr);
|
||||
Paint_DrawString(5, 20, code, &Font36, WHITE, BLACK);
|
||||
int codeLength = strlen(code);
|
||||
if (codeLength <= 6) {
|
||||
Paint_DrawString(5, 20, code, &Font65, WHITE, BLACK);
|
||||
} else if (codeLength > 6) {
|
||||
Paint_DrawString(5, 20, code, &Font56, WHITE, BLACK);
|
||||
} else if (codeLength > 8) {
|
||||
Paint_DrawString(5, 20, code, &Font40, WHITE, BLACK);
|
||||
}
|
||||
Paint_DrawString(8, 5, confName, &Font12, WHITE, BLACK);
|
||||
|
||||
Paint_DrawRectangle(10, 114, 240, 94, BLACK, DOT_PIXEL_1X1, DRAW_FILL_EMPTY);
|
||||
|
||||
Reference in New Issue
Block a user