ジャンプ先: 概要. 戻り値. フラグ. MEL 例.
fontDialog [-FontList] [-scalable]
fontDialog は、取り消し可能、照会不可能、および編集不可能です。
ユーザが選択できる使用可能フォントが示されたダイアログを表示します。選択したフォント名が返されます。フォントを選択しなかった場合は、空の文字列が返されます。
FontList フラグを使用した場合は、ダイアログが表示されません。代わりに、使用可能なフォントの配列が返されます。
FontList, scalable
フラグはコマンドの作成モードで表示できます
|
フラグはコマンドの編集モードで表示できます
|
フラグはコマンドの照会モードで表示できます
|
コマンド内でフラグを複数回使用できます。
|
// Display a selection dialog containing all available fonts and save
// the one selected by the user.
string $selectedFont = `fontDialog`;
// Get an array of all available fonts.
string $fonts[] = `fontDialog -FontList`;
// Get an array of scalable fonts.
string $scalableFonts[] = `fontDialog -FontList -scalable`;