search_font ( : : MinPoint, MaxPoint : Font )

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.


Attention

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.


Parameters

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.


Result

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.


Possible Predecessors

open_window, set_window, open_textwindow


Possible Successors

set_font, get_string_extents, write_string


Alternatives

search_font_list, query_font


See also

get_string_extents, set_font, write_string



Copyright © 1996-1997 MVTec Software GmbH