query_fontT_query_fontQueryFontQueryFontquery_font (算子名称)
名称
query_fontT_query_fontQueryFontQueryFontquery_font
— Query the available fonts.
参数签名
描述
query_fontquery_fontQueryFontQueryFontQueryFontquery_font
queries the fonts available for text output in the
output window. They can be set with the operator set_fontset_fontSetFontSetFontSetFontset_font
using the
appropriate syntax. Fonts are used by the operators write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string
,
read_charread_charReadCharReadCharReadCharread_char
, read_stringread_stringReadStringReadStringReadStringread_string
and new_linenew_lineNewLineNewLineNewLinenew_line
.
注意
For different machines the available fonts may differ a lot. Therefore
query_fontquery_fontQueryFontQueryFontQueryFontquery_font
will return different fonts on different machines.
运行信息
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
参数表
WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle
(input_control) window →
HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Window handle.
FontFontFontFontfontfont
(output_control) string-array →
HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Tuple with available font names.
例程 (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
结果
query_fontquery_fontQueryFontQueryFontQueryFontquery_font
returns 2 (
H_MSG_TRUE)
.
可能的前置算子
open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window
可能的后置算子
set_fontset_fontSetFontSetFontSetFontset_font
,
write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string
,
read_stringread_stringReadStringReadStringReadStringread_string
,
read_charread_charReadCharReadCharReadCharread_char
参考其它
set_fontset_fontSetFontSetFontSetFontset_font
,
write_stringwrite_stringWriteStringWriteStringWriteStringwrite_string
,
read_stringread_stringReadStringReadStringReadStringread_string
,
read_charread_charReadCharReadCharReadCharread_char
,
new_linenew_lineNewLineNewLineNewLinenew_line
模块
Foundation