Pages: [1]   Go Down
Author Topic: The IDE and the font.  (Read 9636 times)
0 Members and 1 Guest are viewing this topic.
Oz
Offline Offline
God Member
*****
Karma: 4
Posts: 703
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ooops.


In another post I was complaining about how lower case L and the number ONE look the same.
Usually capitol I has the same problem.

I was shown how to change the font and I did.

While doing this I thought to myself:  "Make a backup" but as my mind set was in Arduino mode, there is no way of making commented lines.

So I couldn't/didn't.

I changed for font and it sort of worked.
There is a subtle difference between l and 1 which may be enough, but the rest of the formatting is now kaput.
a line of /'s becomes a bit fuzzy, and "ASCII art"/logos/headers what ever, become corrupt.

I changed two lines with the word FONT in them.  One near the top and one a bit further down.
I was looking for editorfont and changed the first one I saw.

I like the "Times new roman" font, and tried that.

It works, but as said other problems happen and so I may have to put up with the horrible original font.
But what is/was it?

Please.



editor.font.macosx=Times,12
preproc.web_colors=true
export.application.platform=true
update.check=true
update.id=6461665999815212812
editor.indent=true
serial.stopbits=1
serial.databits=8
editor.font=Times,plain,12
editor.window.height.default=600


Logged

SF Bay Area (USA)
Online Online
Tesla Member
***
Karma: 124
Posts: 6633
Strongly opinionated, but not official!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

"Monospaced" is the default, I believe.  You should be able to just delete that line from the preferences and have it default to the default, so to speak.  I think.

You really want a Fixed-Width font for coding (like Courier, and NOT like Times.)  There have been some articles about this, for example: http://hivelogic.com/articles/top-10-programming-fonts/

I believe that there are also complaints about the way the IDE renders fonts; not doing smoothing, or somesuch.  I tried some of the fonts mentioned in the article above on my mac, and they didn't look very good.
Logged

SE USA
Offline Offline
Faraday Member
**
Karma: 41
Posts: 3783
@ssh0le
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

you can change font smoothing options in preferences.txt

editor.antialias=false
Logged


Chile
Offline Offline
Edison Member
*
Karma: 35
Posts: 1251
Arduino rocks?
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset



I bundled this beautiful and modern MS Segoe UI Monospaced
http://arduino.cc/forum/index.php/topic,118440.0.html
Logged

My website: http://ried.cl

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You have to use the full name of of the font. If it's called Times New Roman, then that is what you need to put in the editor.font entry.
Logged

Ontario
Offline Offline
God Member
*****
Karma: 24
Posts: 860
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You might consider using this font: http://store1.adobe.com/cfusion/store/html/index.cfm?store=OLS-US&event=displayFontPackage&code=1960
It's free/open source, monospace and has good disambiguation of 0/o/O and 1/l/I -- well suited to coding.
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 126
Posts: 8471
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I use DejaVu Sans Mono, it's pretty nice with a dot in the centre of the 0 so it's real easy to tell from a O.



______
Rob
Logged

Rob Gray aka the GRAYnomad www.robgray.com

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi!
Well I tried to change font in this file but it does not work.
I use this version: Arduino 1.5.6-r2 BETA (with support for Arduino Yún and Arduino Due boards).
Any suggestions why it does not work?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Go to preferences.txt, close the Arduino software. And make these changes:

Code:
editor.antialias=true
editor.font=Consolas,plain,14
Logged

Pages: [1]   Go Up
Jump to: