In my juce Application I changed circle drawings from integer precision to float as explained by jules here:
void MyComponent::paint(juce::Graphics &g)
{
auto area = (getLocalBounds().reduced(2)).toFloat();
area.setCentre(area.getCentre() + juce::Point<float>(deltaX, deltaY));
g.setColour(juce::Colours::black);
g.drawEllipse(area, 1.0f);
g.drawText("Some Text", area, juce::Justification::centred, false);
}
When the circle moves accross the screen, the circle moves smoothly with nice float precision, but the text jitters inside. Am I doing something wrong?