Name
query_fontT_query_fontQueryFontQueryFont — Query the available fonts.
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.
For different machines the available fonts may differ a lot. Therefore
query_fontquery_fontQueryFontQueryFontQueryFont 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.
Tuple with available font names.
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
open_window(0,0,-1,-1,"root","visible","",&WindowHandle) ;
set_check("~text") ;
create_tuple(&Fontlist,1) ;
create_tuple(&String,1) ;
create_tuple(&WindowHandleTuple,1) ;
set_i(WindowHandleTuple,WindowHandle,0) ;
T_query_font(WindowHandleTuple,&Fontlist) ;
set_color(WindowHandle,"white") ;
for(i=0; i<length_tuple(Fontlist); i++) ;
{
charstring = get_s(Fontlist,i) ;
set_display_font(WindowHandle,16,charstring,"true","false") ;
set_s(String,charstring,0) ;
T_write_string(WindowHandleTuple,String) ;
new_line(WindowHandle) ;
}
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
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
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_fontQueryFontQueryFontQueryFont returns 2 (H_MSG_TRUE).
open_windowopen_windowOpenWindowOpenWindowOpenWindow
set_fontset_fontSetFontSetFontSetFont,
write_stringwrite_stringWriteStringWriteStringWriteString,
read_stringread_stringReadStringReadStringReadString,
read_charread_charReadCharReadCharReadChar
set_fontset_fontSetFontSetFontSetFont,
write_stringwrite_stringWriteStringWriteStringWriteString,
read_stringread_stringReadStringReadStringReadString,
read_charread_charReadCharReadCharReadChar,
new_linenew_lineNewLineNewLineNewLine
Foundation