• Announcements

    • bluehash

      Forum Upgrade   03/11/2017

      Hello Everyone, Thanks for being patient while the forums were being fixed and upgraded. Please see details and report issues in this thread. Thanks!
Sign in to follow this  
Followers 0
Mac

Changing the IDE Editor Font?

6 posts in this topic

I wonder if I could take the opportunity to ask a question about the IDE, please?

 

Is this a modified version of the same IDE used by Arduino? If so, is there a way to select a different default editor font? I asked this a couple years ago on the Arduino Forums and never got an answer. I assume no one with knowledge about the IDE got around to reading it. I'm hoping that someone in this relatively new and small Energia group with intimate knowledge about the (Java based?) IDE might actually see my question and respond. Basically, I'd like to be able to use the fixed pitch Consolas font in the IDE Editor.

 

TIA. Cheerful regards, Mike

Share this post


Link to post
Share on other sites

There is a preference file where the font setting can be changed. Not sure what the exact file name is but opening the preference menu and you can see a line of note for it. Be sure to edit this file while the IDE is not running.

Share this post


Link to post
Share on other sites

That file looks very similar to the one in the Arduino IDE, and just like the Arduino IDE, attempts to change the Editor font don't work. At least not for me. It almost seems as though fonts are included in the IDE java files.

 

Anyway, it's a shame because the font makes a huge difference on my laptop;

post-1059-135135552487_thumb.jpg

Share this post


Link to post
Share on other sites

Energia is based on Arduino. A quick look at the font handling in the IDE (Written in Java) and it looked like it should work. As the sources suggested, changing the font in the preferences file worked for me. This is the line in my preferences file:

editor.font=Consolas,bold,14

. You should be able to change this to any font available on your system. I ran my test with Energia 0101E0006 on Max OS X.

post-28238-135135552494_thumb.png

Rickta59 likes this

Share this post


Link to post
Share on other sites

That seems to also work on Linux after I installed the Consolas font. It did look even better when I turned on antialias

 

editor.antialias=true

 

-rick

Share this post


Link to post
Share on other sites

Ok, I think it's working. Setting editor.antialias=true makes a perceivable difference though the font still doesn't look as good as it does in my other IDEs for some reason.

 

Thank you for helping, Gentlemen.

 

Cheerful regards, Mike

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0