Searches a font of the given size.
search_font searches a Font with a size (in points) between MinPoint and MaxPoint. The name of the font is returned in Font. Using procedure set_font Font can be set for the current output window.
Procedure search_font should not be used very often since the search for an appropriate Font may be very time-consuming. If no Font with the appropriate size has been found search_font returns FAIL. In this case the output parameter is undefined.
MinPoint (input_control) |
integer -> integer |
minimum size (in points). | |
Default value: 20 |
MaxPoint (input_control) |
integer -> integer |
maximum size (in points). | |
Default value: 24 |
Font (output_control) |
string -> string |
font name. |
search_font returns TRUE, if a window is activated and a Font in the given intervall exists. If not such font exists, the procedure returns FAIL. In all other cases an exception is raised.
open_window, set_window, open_textwindow
set_font, get_string_extents, write_string
get_string_extents, set_font, write_string