|
@@ -235,6 +235,9 @@ if (m_height > line_height) {\
|
|
while (c[end]!=0 && !(end && c[end-1]==' ' && c[end]!=' ')) {
|
|
while (c[end]!=0 && !(end && c[end-1]==' ' && c[end]!=' ')) {
|
|
|
|
|
|
int cw = font->get_char_size(c[end],c[end+1]).width;
|
|
int cw = font->get_char_size(c[end],c[end+1]).width;
|
|
|
|
+ if (c[end]=='\t') {
|
|
|
|
+ cw=tab_size*font->get_char_size(' ').width;
|
|
|
|
+ }
|
|
w+=cw;
|
|
w+=cw;
|
|
|
|
|
|
if (c[end]==' ') {
|
|
if (c[end]==' ') {
|
|
@@ -292,6 +295,9 @@ if (m_height > line_height) {\
|
|
|
|
|
|
|
|
|
|
int cw=font->get_char_size(c[i],c[i+1]).x;
|
|
int cw=font->get_char_size(c[i],c[i+1]).x;
|
|
|
|
+ if (c[i]=='\t') {
|
|
|
|
+ cw=tab_size*font->get_char_size(' ').width;
|
|
|
|
+ }
|
|
|
|
|
|
if (p_click_pos.x-cw/2>pofs) {
|
|
if (p_click_pos.x-cw/2>pofs) {
|
|
|
|
|
|
@@ -332,6 +338,10 @@ if (m_height > line_height) {\
|
|
cw=font->draw_char(ci,Point2(pofs,y+lh-(fh-ascent)),c[i],c[i+1],color);
|
|
cw=font->draw_char(ci,Point2(pofs,y+lh-(fh-ascent)),c[i],c[i+1],color);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (c[i]=='\t') {
|
|
|
|
+ cw=tab_size*font->get_char_size(' ').width;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
//print_line("draw char: "+String::chr(c[i]));
|
|
//print_line("draw char: "+String::chr(c[i]));
|
|
|
|
|