diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp
index 343b90265a22898e1df66dafe66c1cfddc22e1b6..5c1836b32c6a2f8bb3fc453b0417196480a6d443 100644
--- a/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp
+++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/qml2puppetmain.cpp
@@ -47,6 +47,10 @@
 
 int main(int argc, char *argv[])
 {
+    // Since we always render text into an FBO, we need to globally disable
+    // subpixel antialiasing and instead use gray.
+    qputenv("QSG_DISTANCEFIELD_ANTIALIASING", "gray");
+
     QApplication application(argc, argv);
 
     QCoreApplication::setOrganizationName("QtProject");