Queries all available fonts of a given size.
search_font searches all fonts with a size (in points) between MinPoint and MaxPoint. The names of the found fonts are returned in Font. Using procedure set_font one of these fonts can be set for the current output window.
Procedure search_font_list should not be used very often since all available fonts will be considered which may be very time-consuming. If no Font with the appropriate size has been found search_font_list returns FAIL. In this case the output parameter is undefined.
MinPoint (input_control) |
integer -> integer |
minimum size (in points). | |
Default value: 18 |
MaxPoint (input_control) |
integer -> integer |
maximum size (in points). | |
Default value: 24 |
Font (output_control) |
string-array -> string |
found fonts. |
search_font_list 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