Font macro updates for adding font utilities

This commit is contained in:
matt335672 2022-05-31 11:29:10 +01:00
parent c3585adaa0
commit 888c2a0434
1 changed files with 4 additions and 2 deletions

View File

@ -91,8 +91,10 @@
b = (c) & 0xff; \
}
/* font macros */
#define FONT_DATASIZE(f) \
((((f)->height * (((f)->width + 7) / 8)) + 3) & ~3);
#define FONT_DATASIZE_FROM_GEOMETRY(width,height) \
((((height) * (((width) + 7) / 8)) + 3) & ~3)
#define FONT_DATASIZE(f) FONT_DATASIZE_FROM_GEOMETRY((f->width), (f->height))
/* use crc for bitmap cache lookups */
#define USE_CRC