get_font ( : : : Font )

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.


Parameters

Font (output_control)
string -> string
name of the current font.


Example
get_font(:::CurrentFont) >
set_font(::MyFont:) >
write_string(::['The name of my Font is:',Myfont]:) >
new_line(:::) >
set_font(::CurrentFont:).

Result

get_font returns TRUE, if a window is activated. Otherwise an exception is raised.


Possible Predecessors

open_window, set_window, open_textwindow, query_font, search_font


Possible Successors

set_font


See also

set_font, query_font, open_window, open_textwindow, set_system



Copyright © 1996-1997 MVTec Software GmbH