Download Pelles C here: http://www.pellesc.se
if ((dwFontType & TRUETYPE_FONTTYPE) != 0 &&
(pntm->ntmFontSig.fsCsb[0] & pls->lsCsbSupported[0]) == 0 &&
(pntm->ntmFontSig.fsCsb[1] & pls->lsCsbSupported[1]) == 0)
return 1; /* unwanted font, but keep enumerating */
if ((dwFontType & TRUETYPE_FONTTYPE) != 0 &&
(pntm->ntmFontSig.fsCsb[0] & FS_LATIN1) == 0 && /* <=== NEW */
(pntm->ntmFontSig.fsCsb[0] & pls->lsCsbSupported[0]) == 0 &&
(pntm->ntmFontSig.fsCsb[1] & pls->lsCsbSupported[1]) == 0)
return 1; /* unwanted font, but keep enumerating */
Not pretty, but I can't a better approach right now so this will have to do...Quote from: Pelle on April 21, 2026, 03:05:19 PMMaybe. I need to check things more - this part of the IDE hasn't changed for 10+ years, so...
Quote from: ander_cc on April 20, 2026, 10:02:34 AMI check the output of your code paste below.Maybe. I need to check things more - this part of the IDE hasn't changed for 10+ years, so...
I think you filter the fonts with "GB2312_CHARSET" ? Maybe add "ANSI_CHARSET" could fix it.
#include <stdio.h>
int main(void)
{
int i = 1;
int s = 0;
do {
//s = s + (i*i)/i; // works
s = s + ((i << 1) >> 1); // works
i++;
} while (i <= 10);
printf("i = %d\n", i);
printf("Sum = %d\n", s);
return 0;
}#include <stdio.h>
int main(void)
{
int i = 0;
int s = 0;
do {
++i;
s = s + i;
} while (i <= 9);
printf("i = %d\n", i);
printf("Sum = %d\n", s);
return 0;
}
Page created in 0.066 seconds with 15 queries.