Skip to content

Commit

Permalink
Removed vertical tab support from Text (#442).
Browse files Browse the repository at this point in the history
  • Loading branch information
binary1248 committed May 6, 2014
1 parent cdf32a7 commit 8783efa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/SFML/Graphics/Text.cpp
Expand Up @@ -193,7 +193,6 @@ Vector2f Text::findCharacterPos(std::size_t index) const
case ' ' : position.x += hspace; continue;
case '\t' : position.x += hspace * 4; continue;
case '\n' : position.y += vspace; position.x = 0; continue;
case '\v' : position.y += vspace * 4; continue;
}

// For regular characters, add the advance offset of the glyph
Expand Down Expand Up @@ -301,7 +300,7 @@ void Text::ensureGeometryUpdate() const
}

// Handle special characters
if ((curChar == ' ') || (curChar == '\t') || (curChar == '\n') || (curChar == '\v'))
if ((curChar == ' ') || (curChar == '\t') || (curChar == '\n'))
{
// Update the current bounds (min coordinates)
minX = std::min(minX, x);
Expand All @@ -312,7 +311,6 @@ void Text::ensureGeometryUpdate() const
case ' ' : x += hspace; break;
case '\t' : x += hspace * 4; break;
case '\n' : y += vspace; x = 0; break;
case '\v' : y += vspace * 4; break;
}

// Update the current bounds (max coordinates)
Expand Down

0 comments on commit 8783efa

Please sign in to comment.