if(511<point.first+max.width+char_spacer)
{
point.second+=max.width+char_spacer;
point.first=0;
if(511<point.second+max.height+char_spacer)
{