Skip to content

Commit

Permalink
Changed glyph padding to 0.5 avoid white borders on subpixel scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
oomek committed Aug 23, 2020
1 parent 69b52bb commit fa9a26d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SFML/Graphics/Text.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ namespace
// Add a glyph quad to the vertex array
void addGlyphQuad(sf::VertexArray& vertices, sf::Vector2f position, const sf::Color& color, const sf::Glyph& glyph, float italicShear, float outlineThickness = 0)
{
float padding = 1.0;
float padding = 0.5;

float left = glyph.bounds.left - padding;
float top = glyph.bounds.top - padding;
Expand Down

0 comments on commit fa9a26d

Please sign in to comment.