MATLAB Programming/Psychtoolbox/Screen Commands/TextFont

From Wikibooks, open books for an open world
Jump to navigation Jump to search



Get/set the font for future text draws in this window. You can ask what the current font is, or specify the desired font by number or by name (e.g. Helvetica). Font numbers may not be consistent from PC to PC. If no windowPtr is given, and no fontName argument is supplied, then print out a list of all font names. The default font (set by Windows) is 1 (the System font) for both on-screen and off-screen windows.