外部変形は データのやり取りをテキストファイルで行うので プログラム言語は 自由に選ぶことができます。図形は機能的かつシンプルなため、数多くのユーザーに受け入れられています。
パワーシェルで文字フォントを取得する(cn"$<~>)
:パワーシェルで文字フォントを取得する(cn"$<~>)
@echo off
for /f "delims=:" %%n in ('findstr /n "^#!" %0') do (
more +%%n %0 | powershell -command -
)
goto:eof
REM #jww
REM #e
#!ここから more +n %0 の n 行目:最初の行は 0 行
(gc jwc_temp.txt) | foreach {
switch -regex -case ($_)
{
'^cn\"\$\<(.+)\>' {
$pfont = [string] $matches[1]
if ($font -eq $null) { $font = $pfont }
"h#font=$font"
}
}
} | sc jwc_temp.txt
#ここまで powershell は 文末に必ず空白行を置いてください