You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the recent addition of font control in screen_prompt has revealed what I anticipate to be a nasty Pyglet bug. Displayed text has random (as far as I can tell) but reproducible spacing issues where large amounts of horizontal space are placed in between letters in the string. This is happening post-wrap, as it causes the text to go off the screen to the right instead of creating more lines.
Problem gets worse with increasing text size (wanted to use 40). Workaround was to use a smaller text size (seems to be OK with 30). This will need to be fixed, as some subjects have expressed difficulty reading instructions at the default size of 24 pts.
The text was updated successfully, but these errors were encountered:
Awesome! Argh... yeah probably no easy fix for this. Might actually be easiest to calculate the wraps ourselves and insert the newlines. Plus then we can detect if the line is too long horizontally or vertically, and produce a warning or error. The logic shouldn't actually need to be too many lines if we make some reasonable-ish assumptions about the font.
Problem doesn't seem to be with the wrapping, though, since the wrapping is unaffected. It's just that in Windows, these random spaces (but likely not actual space or tab characters) are added. Seems to be a rendering issue?
So the recent addition of font control in
screen_prompt
has revealed what I anticipate to be a nasty Pyglet bug. Displayed text has random (as far as I can tell) but reproducible spacing issues where large amounts of horizontal space are placed in between letters in the string. This is happening post-wrap, as it causes the text to go off the screen to the right instead of creating more lines.Problem gets worse with increasing text size (wanted to use 40). Workaround was to use a smaller text size (seems to be OK with 30). This will need to be fixed, as some subjects have expressed difficulty reading instructions at the default size of 24 pts.
The text was updated successfully, but these errors were encountered: