mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 09:10:48 +01:00
[Kandinsky] Create a KDText class for text measurement
Change-Id: Ie3ecd402b5476f41a2f8694a276f62495fbcdbd1
This commit is contained in:
7
kandinsky/src/text.cpp
Normal file
7
kandinsky/src/text.cpp
Normal file
@@ -0,0 +1,7 @@
|
||||
#include <kandinsky/text.h>
|
||||
#include <string.h>
|
||||
#include "font.h"
|
||||
|
||||
KDSize KDText::stringSize(const char * text) {
|
||||
return KDSize(BITMAP_FONT_CHARACTER_WIDTH*strlen(text), BITMAP_FONT_CHARACTER_HEIGHT);
|
||||
}
|
||||
Reference in New Issue
Block a user