#include #include #include "font.h" KDSize KDText::stringSize(const char * text) { if (text == nullptr) { return KDSizeZero; } return KDSize(BITMAP_FONT_CHARACTER_WIDTH*strlen(text), BITMAP_FONT_CHARACTER_HEIGHT); }