diff options
-rw-r--r-- | src/ui/text.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/text.c b/src/ui/text.c index 2c17b3da..de8f10a4 100644 --- a/src/ui/text.c +++ b/src/ui/text.c | |||
@@ -1339,7 +1339,7 @@ static void shape_GlyphBuffer_(iGlyphBuffer *d) { | |||
1339 | } | 1339 | } |
1340 | 1340 | ||
1341 | static float nextTabStop_Font_(const iFont *d, float x) { | 1341 | static float nextTabStop_Font_(const iFont *d, float x) { |
1342 | const float stop = 4 * d->emAdvance; | 1342 | const float stop = 8 * d->emAdvance; |
1343 | return floorf(x / stop) * stop + stop; | 1343 | return floorf(x / stop) * stop + stop; |
1344 | } | 1344 | } |
1345 | 1345 | ||
@@ -1696,6 +1696,7 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) { | |||
1696 | const float yAdvance = run->font->yScale * buf->glyphPos[i].y_advance; | 1696 | const float yAdvance = run->font->yScale * buf->glyphPos[i].y_advance; |
1697 | const iGlyph *glyph = glyphByIndex_Font_(run->font, glyphId); | 1697 | const iGlyph *glyph = glyphByIndex_Font_(run->font, glyphId); |
1698 | if (logicalText[logPos] == '\t') { | 1698 | if (logicalText[logPos] == '\t') { |
1699 | #if 0 | ||
1699 | if (mode & draw_RunMode) { | 1700 | if (mode & draw_RunMode) { |
1700 | /* Tab indicator. */ | 1701 | /* Tab indicator. */ |
1701 | iColor tabColor = get_Color(uiTextAction_ColorId); | 1702 | iColor tabColor = get_Color(uiTextAction_ColorId); |
@@ -1708,6 +1709,7 @@ static iRect run_Font_(iFont *d, const iRunArgs *args) { | |||
1708 | pad | 1709 | pad |
1709 | }); | 1710 | }); |
1710 | } | 1711 | } |
1712 | #endif | ||
1711 | xCursor = nextTabStop_Font_(d, xCursor) - xAdvance; | 1713 | xCursor = nextTabStop_Font_(d, xCursor) - xAdvance; |
1712 | } | 1714 | } |
1713 | const float xf = xCursor + xOffset; | 1715 | const float xf = xCursor + xOffset; |