query_fontT_query_fontQueryFontQueryFont (Operator)

Name

query_fontT_query_fontQueryFontQueryFont — Query the available fonts.

Signature

query_font( : : WindowHandle : Font)

Herror T_query_font(const Htuple WindowHandle, Htuple* Font)

void QueryFont(const HTuple& WindowHandle, HTuple* Font)

HTuple HWindow::QueryFont() const

static void HOperatorSet.QueryFont(HTuple windowHandle, out HTuple font)

HTuple HWindow.QueryFont()

Description

query_fontquery_fontQueryFontQueryFontQueryFont queries the fonts available for text output in the output window. They can be set with the operator set_fontset_fontSetFontSetFontSetFont using the appropriate syntax. Fonts are used by the operators write_stringwrite_stringWriteStringWriteStringWriteString, read_charread_charReadCharReadCharReadChar, read_stringread_stringReadStringReadStringReadString and new_linenew_lineNewLineNewLineNewLine.

Attention

For different machines the available fonts may differ a lot. Therefore query_fontquery_fontQueryFontQueryFontQueryFont will return different fonts on different machines.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

FontFontFontFontfont (output_control)  string-array HTupleHTupleHtuple (string) (string) (HString) (char*)

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_fontquery_fontQueryFontQueryFontQueryFont returns 2 (H_MSG_TRUE).

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindow

Possible Successors

set_fontset_fontSetFontSetFontSetFont, write_stringwrite_stringWriteStringWriteStringWriteString, read_stringread_stringReadStringReadStringReadString, read_charread_charReadCharReadCharReadChar

See also

set_fontset_fontSetFontSetFontSetFont, write_stringwrite_stringWriteStringWriteStringWriteString, read_stringread_stringReadStringReadStringReadString, read_charread_charReadCharReadCharReadChar, new_linenew_lineNewLineNewLineNewLine

Module

Foundation