Skip to content

query_fontQueryFontQueryFontquery_fontT_query_font🔗

説明🔗

query_fontQueryFontQueryFontquery_fontT_query_font — 利用可能なフォントを問い合わせる。

書式🔗

query_font( window WindowHandle, out string Font )void QueryFont( const HTuple& WindowHandle, HTuple* Font )static void HOperatorSet.QueryFont( HTuple windowHandle, out HTuple font )def query_font( window_handle: HHandle ) -> Sequence[str]

Herror T_query_font( const Htuple WindowHandle, Htuple* Font )

HTuple HWindow::QueryFont( ) const

HTuple HWindow.QueryFont( )

説明🔗

query_fontQueryFont は、出力ウインドウ内のテキスト出力に対して利用可能な フォントを問い合わせます。それらのフォントは、オペレーター set_fontSetFont にて 決められた書式を使用し設定することができます。フォントは、オペレータ write_stringWriteString, read_charReadChar, read_stringReadString, new_lineNewLine によって 使用されます。

注意🔗

マシンにより利用可能なフォントは異なる可能性があります。したがって、 query_fontQueryFont は異なるマシン上で異なるフォントを返す可能性があります。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

パラメーター🔗

WindowHandlewindowHandlewindow_handle (input_control) window → (handle)HTuple (HHandle)HWindow, HTuple (IntPtr)HHandleHtuple (handle)

ウインドウハンドル

Fontfontfont (output_control) string-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

利用可能なフォント名をもつ tuple

例🔗

(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_fontQueryFont は、値 2 (H_MSG_TRUE) を返します。

他のオペレーターとの組み合わせ🔗

組み合わせ

前処理の候補

open_windowOpenWindow

後処理の候補

set_fontSetFont, write_stringWriteString, read_stringReadString, read_charReadChar

関連項目

set_fontSetFont, write_stringWriteString, read_stringReadString, read_charReadChar, new_lineNewLine

モジュール🔗

Foundation