Text and shaders
<p>Using SFML 2.4, I want to draw a text on the screen and apply effects on it with a fragment shader. But when I try it, the text is drawn with squares instead of characters</p>

<p>Fragment shader :</p>

<pre><code>void main() { gl_FragColor= vec4(1,0,0,1); }
</code></pre>

<p>SFML text code : </p>

<pre><code>sf::Text t;
t.setFont(myFont);
t.setCharacterSize(10);
t.setColor(sf::Color::White);
t.setString("this is a test");

//myWindow.draw(t); // This displays a white "this is a test"
//myWindow.draw(t, myShader); // This displays red squares instead of characters
</code></pre>

<p>I expected my shader to display that text in red. But instead I get red squares. Each square is the size of the bounding box of the character that's supposed to be there.
Am I missing something obvious here? Or is sf::Text just not intended to be used that way?</p>