Queries the current font.
get_font queries the name of the font used in the current output window. The font is used by the procedures write_string, read_string etc. The font is set by the procedure set_font. Text windows as well as windows for image display use fonts. Both types of windows have a default font that can be modified with set_system(::'default_font',Fontname:) prior to opening the window. A list of all available fonts can be obtained using query_font.
Font (output_control) |
string -> string |
name of the current font. |
get_font(:::CurrentFont) > set_font(::MyFont:) > write_string(::['The name of my Font is:',Myfont]:) > new_line(:::) > set_font(::CurrentFont:).
get_font returns TRUE, if a window is activated. Otherwise an exception is raised.
open_window, set_window, open_textwindow, query_font, search_font
set_font, query_font, open_window, open_textwindow, set_system