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
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
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.
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
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);
}
Hi Timo,
Compiling your code, I get the font not found message on Windows 7 Sp1.
https://fonts.google.com/specimen/Cascadia+Mono (https://fonts.google.com/specimen/Cascadia+Mono)
Just an external font