search_font_list ( : : MinPoint, MaxPoint : Font )

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.


Attention

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.


Parameters

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.


Result

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.


Possible Predecessors

open_window, set_window, open_textwindow


Possible Successors

set_font, get_string_extents, write_string


Alternatives

search_font, query_font


See also

get_string_extents, set_font, write_string



Copyright © 1996-1997 MVTec Software GmbH