Operator Reference
query_font (Operator)
query_font — Query the available fonts.
Signature
query_font( : : WindowHandle : Font)
Description
query_font queries the fonts available for text output in the
output window. They can be set with the operator set_font using the
appropriate syntax. Fonts are used by the operators write_string,
read_char, read_string and new_line.
Attention
For different machines the available fonts may differ a lot. Therefore
query_font will return different fonts on different machines.
Execution Information
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
Parameters
WindowHandle (input_control) window → (handle)
Window handle.
Font (output_control) string-array → (string)
Tuple with available font names.
Example (HDevelop)
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
set_check('~text')
query_font(WindowHandle,Fontlist)
set_color(WindowHandle,'white')
for i:=0 to |Fontlist|-1 by 1
set_display_font (WindowHandle,16,Fontlist[i],'true','false')
write_string(WindowHandle,Fontlist[i])
new_line(WindowHandle)
endfor
Result
query_font returns 2 (
H_MSG_TRUE)
.
Possible Predecessors
Possible Successors
set_font,
write_string,
read_string,
read_char
See also
set_font,
write_string,
read_string,
read_char,
new_line
Module
Foundation