Get the current font.
get_font queries the name of the font used in the output window. The font is used by the operators write_string, read_string etc. The font is set by the operator 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.
|
WindowHandle (input_control) |
window -> integer |
| Window identifier. | |
|
Font (output_control) |
string -> string |
| Name of the current font. | |
get_font(WindowHandle,CurrentFont) set_font(WindowHandle,MyFont) write_string(WindowHandle,['The name of my Font is:',Myfont]) new_line(WindowHandle) set_font(WindowHandle,CurrentFont)
get_font returns 2 (H_MSG_TRUE).
get_font is reentrant and processed without parallelization.
open_window, open_textwindow, query_font
set_font, query_font, open_window, open_textwindow, set_system
Foundation