Pelles C forum

Pelles C => Bug reports => Topic started by: ander_cc on April 14, 2026, 08:58:13 AM

Title: Some fonts are missing from the font file list.
Post by: ander_cc on April 14, 2026, 08:58:13 AM
Like "Cascadia Mono", I can't see it in font name list. But can set in theme file.
Btw: When I was translating rc file, I noticed line 3409 had still read "version 13.00".
See attach files.
Pelles C v14, Windows 11 pro Chinese (Samplify) 25H2
Title: Re: Some fonts are missing from the font file list.
Post by: John Z on April 14, 2026, 01:55:09 PM
Hi ander_cc,

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
Title: Re: Some fonts are missing from the font file list.
Post by: ander_cc on April 14, 2026, 03:28:05 PM
Quote from: John Z on Yesterday at 01:55:09 PMHi ander_cc,

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
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.
Title: Re: Some fonts are missing from the font file list.
Post by: John Z on April 14, 2026, 04:49:07 PM
You could be right, seems like it.  Did you check windows settings, personalization, fonts ..... that would be definitive if it is not showing there.

You might try Microsoft Store and see if the font is available to be installed.

John Z
Title: Re: Some fonts are missing from the font file list.
Post by: TimoVJL on April 14, 2026, 07:25:55 PM
Silly example to check if font exists
#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);
}
Title: Re: Some fonts are missing from the font file list.
Post by: Vortex on April 14, 2026, 08:34:57 PM
Hi Timo,

Compiling your code, I get the font not found message on Windows 7 Sp1.
Title: Re: Some fonts are missing from the font file list.
Post by: TimoVJL on April 14, 2026, 09:13:09 PM
https://fonts.google.com/specimen/Cascadia+Mono (https://fonts.google.com/specimen/Cascadia+Mono)
Just an external font