Queries the available fonts.
query_font queries the fonts available for text output in the current output window. They can be set with the procedure set_font. Fonts are used by the procedures write_string, read_char, read_string and new_line.
For different machines the available fonts may vary a lot. Therefore query_font will return different fonts on different machines.
Font (output_control) |
string-array -> string |
Tupel with available font names. |
open_window(::0,0,-1,-1,'root','visible','':) > set_check(::'~text':) > query_font(:::Fontlist) > set_color(::'white':) > for(::1,|Fontlist|:i) > set_font(::Fontlist[i]:) > write_string(::Fontlist[i]:) > new_line(:::) > loop(:::).
query_font returns TRUE, if a window is activated. Otherwise an exception is raised.
open_window, set_window, open_textwindow, search_font
set_font, write_string, read_string, read_char
set_font, write_string, read_string, read_char, new_line