/* Draws a string to the display. 
This function will draw a string located in memory to the display. */
void gfx_mono_draw_string(const char *str, gfx_coord_t x, gfx_coord_t y, const struct font *font)
/* Draws a string to the display. 
This function will draw a string located in memory to the display. */
void gfx_mono_draw_string(const char *str, gfx_coord_t x, gfx_coord_t y, const struct font *font)
{
	const gfx_coord_t start_of_string_position_x = x;
	Assert(str != NULL);
	Assert(font != NULL);
	do {
		if (*str == '\n') {
			x = start_of_string_position_x;
			y += font->height + 1;
		} else if (*str == '\r') {
		} else {
			gfx_mono_draw_char(*str, x, y, font);
			x += font->width;
		}
	} while (*(++str));
}