query_font ( : : : Font )

Queries the available fonts.

query_font queries the fonts available for text output in the current output window. They can be set with the procedure set_font. Fonts are used by the procedures write_string, read_char, read_string and new_line.


Attention

For different machines the available fonts may vary a lot. Therefore query_font will return different fonts on different machines.


Parameters

Font (output_control)
string-array -> string
Tupel with available font names.


Example
open_window(::0,0,-1,-1,'root','visible','':) >
set_check(::'~text':) >
query_font(:::Fontlist) >
set_color(::'white':) >
for(::1,|Fontlist|:i) >
  set_font(::Fontlist[i]:) >
  write_string(::Fontlist[i]:) >
  new_line(:::) >
loop(:::).

Result

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


Possible Predecessors

open_window, set_window, open_textwindow, search_font


Possible Successors

set_font, write_string, read_string, read_char


Alternatives

search_font, search_font_list


See also

set_font, write_string, read_string, read_char, new_line



Copyright © 1996-1997 MVTec Software GmbH