Hello everyone,
i am looking for a way to change console font size(windows), i've already tried to use "SetCurrentConsoleFontEx" function but it didn't work for me, is there an alternative?
EDIT: Not the actual code but a simple instance, after calling the function font size doesn't change, i guess problem about the "FaceName" member of the "CONSOLE_FONT_INFOEX" structure, i couldn't find the correct data type for "WCHAR"
.386
.model flat, stdcall
option casemap:none
includelib \masm32\lib\kernel32.lib
STD_OUTPUT_HANDLE equ <-11>
COORD STRUCT
X WORD ?
Y WORD ?
COORD ENDS
CONSOLE_FONT_INFOEX STRUCT
cbSize DWORD 24
nFont DWORD 0
dwFontSize COORD <16, 12>
FontFamily DWORD 0
FontWeight DWORD 400
FaceName DWORD 0
CONSOLE_FONT_INFOEX ENDS
ExitProcess PROTO dwExitCode:DWORD
GetStdHandle PROTO nStdHandle:DWORD
SetCurrentConsoleFontEx PROTO hConsoleOutput:DWORD, bMaximumWindow:DWORD, lpConsoleCurrentFontEx:PTR CONSOLE_FONT_INFOEX
.data
fontEx CONSOLE_FONT_INFOEX <>
.code
main proc
invoke GetStdHandle, STD_OUTPUT_HANDLE
invoke SetCurrentConsoleFontEx, eax, 0, OFFSET fontEx
invoke ExitProcess, 0
main endp
end main
Just show us a short example of what you tried to do and someone may be able to help you.