Permalink
Browse files

Removed vertical tab support from Text (#442).

  • Loading branch information...
1 parent 83951d1 commit c45039e907b4fdc6d85cd919654e8788f0a036e1 @binary1248 binary1248 committed with eXpl0it3r May 6, 2014
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/SFML/Graphics/Text.cpp
@@ -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
@@ -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);
@@ -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)

0 comments on commit c45039e

Please sign in to comment.