Skip to content

Commit a909c95

Browse files
committed
BF: for the glfw backend we needed to make this change for TextStim
@mdcutone this was all we needed and then pyglet's text objects working fine inside the glfw window :-)
1 parent 23d07cb commit a909c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/visual/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def setText(self, text=None, log=None):
296296
def _setTextShaders(self, value=None):
297297
"""Set the text to be rendered using the current font
298298
"""
299-
if self.win.winType == "pyglet":
299+
if self.win.winType in ["pyglet", "glfw"]:
300300
self._pygletTextObj = pyglet.font.Text(
301301
self._font, self.text,
302302
halign=self.alignHoriz, valign=self.alignVert,

0 commit comments

Comments
 (0)