Download Pelles C here: http://www.pellesc.se
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
int CALLBACK EnumFontFamProc(const LOGFONT *lpelf, const TEXTMETRIC *lpntm,
DWORD FontType, LPARAM lParam)
{
static int nCnt;
OutputDebugString(lpelf->lfFaceName);
if (!lstrcmp(lpelf->lfFaceName, (TCHAR*)lParam))
nCnt++;
return nCnt;
}
void __cdecl WinMainCRTStartup(void)
{
HDC hDC = GetDC(GetDesktopWindow());
//int nFont = EnumFontFamilies(hDC, TEXT("Consolas"), EnumFontFamProc, (LPARAM)TEXT("Consolas"));
int nFont = EnumFontFamilies(hDC, TEXT("Cascadia Mono"), EnumFontFamProc, (LPARAM)TEXT("Cascadia Mono"));
if (nFont) MessageBox(0, "font found", "Font", MB_OK);
else MessageBox(0, "font not found", "Font", MB_OK);
ExitProcess(0);
}
#include <stdio.h>
int main(void)
{
int i=1, sum=0;
while (i<=100)
{
//printf("i=%d\n",i);
sum=sum+i;
i++;
}
printf("i=%d\n",i);
printf("sum=%d\n",sum);
return 0;
}_text SEGMENT PARA 'CODE' ; section number 1
main PROC
sub rsp, 40 ; 0000 _ 48: 83. EC, 28
lea rcx, [@152] ; 0004 _ 48: 8D. 0D, 00000000(rel)
call printf ; 000B _ E8, 00000000(rel)
lea rcx, [@154] ; 0010 _ 48: 8D. 0D, 00000000(rel)
mov edx, 5050 ; 0017 _ BA, 000013BA
call printf ; 001C _ E8, 00000000(rel)
xor eax, eax ; 0021 _ 31. C0
add rsp, 40 ; 0023 _ 48: 83. C4, 28
ret ; 0027 _ C3
main ENDP
_text ENDS
.xdata SEGMENT ALIGN(8) 'CONST' ; section number 3
..?xdatasym1 label byte
db 01H, 04H, 01H, 00H, 04H, 42H, 00H, 00H ; 0000 _ .....B..
.xdata ENDS
.rdata SEGMENT PARA 'CONST' ; section number 4
@154 label byte
db 73H, 75H, 6DH, 3DH, 25H, 64H, 0AH, 00H ; 0000 _ sum=%d..
@152 label byte
db 69H, 3DH, 25H, 64H, 0AH, 00H ; 0008 _ i=%d..
.rdata ENDS
(half kidding you, no offense meant)
Quote from: John Z on April 14, 2026, 01:55:09 PMHi ander_cc,I also try it in my laptop, it is Win11 Home 25h2, and a Win10 pc, but miss some fonts too. Maybe this issue is only related to the Windows Chinese Edition.
On my system the Cascadia fonts are there. See attachment.
Windows 11 Home 25H2, so seems they 'should' be there on Pro . . . it is not a Pelles IDE issue I think...
Try going to windows settings, personalization, fonts, then see what is there.
John Z
P.S. The title on the resource 9 file also shows 13 I believe
Page created in 0.025 seconds with 13 queries.