When I use DrawFormattedText (using Matlab 2018a on a Windows 10 PC) to present text on screen, only the bottom 2/3 of the text is visible. I never had this issue on a Mac, but I don't have a Mac machine to test it out on.
I have tried searching for an answer to my question, and found this thread that has the exact same problem...
Psychtoolbox - Text for Instruction
Unfortunately, there is no clear answer to the problem on that thread, but I am experiencing the exact same thing.
When I use the code provided in that thread, I still get the same problem (the top 1/3 of my text is not visible).
Here's the code...
screenNum = max(Screen('Screens'));
window = Screen('OpenWindow', screenNum, 0);
white = WhiteIndex(window);
Screen('TextSize', window, 20);
Screen('TextFont', window, 'Courier');
DrawFormattedText(window, 'Hello World', 'center', 'center', white)
Screen('Flip', window);
imageArray = Screen('GetImage', window);
WaitSecs(3);
Screen('CloseAll');
imwrite(imageArray, 'testImage.png');
When I run this code, I do not see the top 1/3 of the text (just like the original poster on the linked question).