Pelles C forum

C language => Beginner questions => Topic started by: wxy on March 14, 2014, 09:34:10 AM

Title: Font Setting
Post by: wxy on March 14, 2014, 09:34:10 AM
I can't setting the font in source editor as Consolas or so on.
There are a drop list in Tools -> Options -> Source -> Font .
But the fonts in the list is very few....
Have there any method to solve this problem? (Pelles C7.0, Win7 SP1, Chinese Language)
(sorry for my english)
Title: Re: Font Setting
Post by: frankie on March 14, 2014, 12:58:48 PM
你好
The IDE lists all the fonts it can find in the system, doesn't installany font by itself.
If you dont'see all the fonts you have (consolas font is installed ?) it could be an installation problem.
Try to remove PellesC and reinstall it.
Title: Re: Font Setting
Post by: Stefan Pendl on March 16, 2014, 12:11:09 PM
This is a problem with the Chinese regional settings, if I remember correctly.

Search for Consolas, since there was a discussion about it a few weeks ago.
Title: Re: Font Setting
Post by: LD Blake on March 17, 2014, 07:42:58 PM
I can't setting the font in source editor as Consolas or so on.
There are a drop list in Tools -> Options -> Source -> Font .
But the fonts in the list is very few....
Have there any method to solve this problem? (Pelles C7.0, Win7 SP1, Chinese Language)
(sorry for my english)

Do you even have the consolas font on your system?
 
Go to Control Panel -> Fonts ... is it there and can you successfully preview it?
 
POIDE's settings generally list all fonts on your system, marking the fixed pitch ones with yellow circles. If it is in your fonts folder but not showing up in Setup, it may be a regional settings issue... you can try temporarily setting your desktop location to the United States....
 
 
Title: Re: Font Setting
Post by: wxy on May 15, 2014, 05:39:37 AM
Thank you, I tried it but failed...

I can't setting the font in source editor as Consolas or so on.
There are a drop list in Tools -> Options -> Source -> Font .
But the fonts in the list is very few....
Have there any method to solve this problem? (Pelles C7.0, Win7 SP1, Chinese Language)
(sorry for my english)

Do you even have the consolas font on your system?
 
Go to Control Panel -> Fonts ... is it there and can you successfully preview it?
 
POIDE's settings generally list all fonts on your system, marking the fixed pitch ones with yellow circles. If it is in your fonts folder but not showing up in Setup, it may be a regional settings issue... you can try temporarily setting your desktop location to the United States....
Title: Re: Font Setting
Post by: larryli on April 15, 2023, 06:19:27 AM
Because the IDE limits the supported locale of the font, so we must use the hybrid fonts such as YaHei Consolas Hybrid(https://github.com/yakumioto/YaHei-Consolas-Hybrid-1.12) on Chinese system.

Code: [Select]
    /* The font must have at least one of the supported locales */
    if ((pntm->ntmFontSig.fsCsb[0] & pls->lsCsbSupported[0]) == 0 &&
        (pntm->ntmFontSig.fsCsb[1] & pls->lsCsbSupported[1]) == 0)
        return 1;

Title: Re: Font Setting
Post by: John Z on April 15, 2023, 02:35:03 PM
Not sure what you mean by the IDE limits the fonts, on my installation I see many fonts only
limited by what has been installed on the system.  In addition there is unicode.  I've on occasion
switch my locale to Chinese to test a multilingual program - worked ok.

You might try SimSun-ExtB for Chinese plus Latin characters.

Maybe someone with more experience can help  :)

John Z