I used DrawFormattedText to show text but found the top (about1/4) of the text did not appear in my laptop. But it did show completely in another desktop with the same codes.
I wonder why and how to fix it ?
“Screen(‘Preference’, ‘SkipSyncTests’, 1);
The result in the laptop:
search the forum for drawtext plugin, this comes up frequently
Thank you! It works with Screen(‘DrawText’…).
Your report lacks information about operating system and display setup, but this looks like a combination of
- Using the MS-Windows operating system.
- The drawtext plugin failing to load on it → Fallback to less capable GDI renderer, which among other things can’t deal with HiDPI displays, unusual fonts, and various other things.
- Using a HiDPI display and therefore a scaling factor other than 100% (No scaling).
The likely solution is to get drawtext plugin to load: →
Thank you! It is indeed the HiDPI display in my laptop. When I set the scaling factor to 100%, the text is shown completely.
But that problem only happens with the fallback text renderer, which is not recommended for use, therefore →
Thank you so much! But I don’t seem to understand. ‘help DrawTextPlugin’ seems to slove the error of Screen() function that fails to load the external text renderer plugin and need to install some 3rd party libraries in MS-Windows operating system. But the Screen(‘DrawText’) function in my laptop works well and shows complete text. Only DrawFormattedText function shows incomplete text. So I am not sure if it is the problems of plugin?
we are sure it is. Install those 3rd party libraries and you will have better text rendering, through both methods (there are positioning and sizing problems also with plain Screen(‘DrawText’) that you’re apparently not noticing)
OK. I know. Thanks a lot!
Btw., the fact that you were able to do without installing the GStreamer libraries suggests that you are on a old, outdated and unsupported Psychtoolbox version, v3.0.15 or earlier, so upgrading is recommended.