This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Ranch Office and the fly likes Font not suitable to distinguish l and 1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Ranch Office
Bookmark "Font not suitable to distinguish l and 1" Watch "Font not suitable to distinguish l and 1" New topic
Author

Font not suitable to distinguish l and 1

Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Small l and 1 look almost identical in code-blocks. Is this a javaranch-issue or a firefox-linux? There should be a more coderfriendly font, because I used 'l' in my example, and it looked like 1 all over the place. Of course, in longer identifiers like 'long' it's easy distinguishable.

Example:

can you read that? Yes, if I increase the font, I see a small difference at the top.
My shell uses a font, where small L ist printed like that:

The font-dialog says, the name is 'monospace' which sounds very generic.


http://home.arcor.de/hirnstrom/bewerbung
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

You're right, the glyphs look the same in the font used in Firefox on this MacBook. But the "ones" are red, and the "ells" are black, so it's not all that hard for me to tell the difference.


[Jess in Action][AskingGoodQuestions]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can go into your browser settings and change the default font for monospace.

Eric
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20495
    ∞

A famous obfuscator trick:



The second one has twice as many "els" as the first.


permaculture Wood Burning Stoves 2.0 - 4-DVD set
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Eric Pascarello wrote:You can go into your browser settings and change the default font for monospace.


Does not work (Javaranch looks the same as before) for me, and might reduce the redabiltity of everything else. Did you try it?
A famous obfuscator trick:


famous!
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

I found
* 12lLiI| Andale_Mono
* 12lLiI| DejaVuSansMono
* 12lLiI| FreeMono
* 12lLiI| LiberationMono-Regular
* 12lLiI| TlwgMono

as to be seen here: http://home.arcor.de/hirnstrom/images/mono-fonts.html (if you happen to have those fonts too ) on my system, and specified Andale Mono for monospaced-fonts in the settings - without much success. Other Webpages now look different - not a nice font, imho, but the l/1 is done right. The others look nearly the same, and seem to differ in size and bold/not bold, while defined the same way (size=14).
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Okay, added an image, so it makes sense.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Font not suitable to distinguish l and 1
 
Similar Threads
Cellular Automata for Cave Generation?
2 Question from newbie!
Loading Font through .ttf file but issue with the size
best way to delete duplicate
NullPointerException...