質問: コマンドでcmdフォントとフォントサイズを変更するにはどうすればよいですか? コマンドでcmdフォントとフォントサイズを変更する方法はありますか?
回答: フォントサイズを変更するためのbgライブラリをダウンロード... https://github.com/carlos-montiers/consolesoft-mirror/releases/download/20180921/bg39.zip そのためにv3.9を使用しています。楽しんで!使い方; bg.exe is a tool for print text color in cmd.exe. it accepts regular expressions for print ascii characters. it also have useful functions. notice: this version fixes a problem happened on windows 7 sp1 with the function font. ::::: parameters ::::: kbd ::wait until you press any key, and returns the ascii code. ::if an extended key was pressed, returns the second code plus 256. example. if you pressed the up arrow (224, 72) returns 327 (72+256). lastkbd ::if any key was pressed, returns the ascii code, else return 0. ::if the key pressed is extended, it returns the second code plus 256. example. if you pressed the up arrow (224, 72) returns 327 (72+256). mouse ::wait until you press primary button into console area. ::when you press a valid button of mouse print: rownumber colnumber (both 0 index based). ::also, is returned a number, where you can get the same info: ::set /a "mouserow=%errorlevel% >> 0x10 , mousecol=%errorlevel% & 0xffff" datetime ::print eight numbers, separated by a space, that corresponds to the current: ::dayofweek year month day hour minute second milliseconds :: ::dayofweek value is from 0 to 6. 0 is sunday, 1 is monday, ..., 6 is saturday ::year value is from 1601 to 30827 ::month value is from 1 to 12 ::day value is from 1 to 31 ::hour value is from 0 to 23 ::minute value is from 0 to 59 ::second value is from 0 to 59 ::milliseconds value is from 0 to 999 cursor 0 | 1 | 25 | 50 | 100 ::hide or show cursor of keyboard or change the size. ::0 hide ::1 show ::25 small size ::50 medium size ::100 large size font 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 ::change the size of font to terminal font according this next table: :: index size :: 0 4x6 :: 1 6x8 :: 2 8x8 :: 3 16x8 :: 4 5x12 :: 5 7x12 :: 6 8x12 :: 7 16x12 :: 8 12x16 :: 9 10x18 sleep milliseconds ::do a wait or sleep in milliseconds. milliseconds should be greater than 0. locate row column ::locate the position of cursor in row and column specified (both 0 index based). ::if row is less than 0, is interpreted as 0. ::if row is greater than the max row (in the console screen buffer), is interpreted as the max row. ::if column is less than 0, is interpreted as 0. ::if column is greater than the max row (in the console screen buffer), is interpreted as the max row. print text ::print text without new line to end. the text can use oem escape sequences. ::please see the regular expressions in down. print color text ... ::print text in hexadecimal color without new line to end. you can repeat arguments. ::the text recognize the next oem escape sequences: \n print a newline \\ print \ \number hexadecimal ascii number code from 00 to ff. example: \01 is face character example: \41 is a note 2: you can repeat arguments. example: bg.exe print a "text in color a" b "text in color b" fcprint row column [color text ...] ::begin printing of colored text in the row and col (zero index based). the column is fixed. ::row and column can be outside the console screen buffer limits. play soundfile.wav [ntimes] ::play soundfile.wav from begin to the end ::if ntimes is specified the play is repeated the number of times specified. ::(this function is different from the utility sound.exe where the second parameter correspond to seconds.) ::::: colours ::::: [background]foreground colours values is a one hexadecimal (0123456789abcdef) digit for each concept. 0 = black 1 = blue 2 = green 3 = aqua 4 = red 5 = purple 6 = yellow 7 = white 8 = gray 9 = light blue a = light green b = light aqua c = light red d = light purple e = light yellow f = bright white