A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » Video Cards » Nvidia Videocards
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Font: Courier New Size: 9 is flawed for programming and other serious documents

Thread Tools Display Modes
Old December 8th 20, 08:23 AM posted to alt.comp.periphs.videocards.nvidia
external usenet poster
Posts: 61
Default Font: Courier New Size: 9 is flawed for programming and other serious documents

I just ran into the stranges code:

Lan1 : SomeType;

The compiler nagged it couldn't find the variable.
So I copied the code into textpad which uses slightly bigger font.
Thanks to the bigger font I noticed the difference between 1 and l.
Otherwise it was hard to catch and I might have believed it may have been some strange unicode symbol.

Turns out the courier new font at size 9 is simply flawed for programming, the 1 and l is exactly the same. Even at higher sizes the difference is minor, 1 pixel or so. Perhaps not use this font anymore for programming or make a slight change to it so the 1 and l remains different at hopefully all font sizes !

(My current Delphi 10.2 development environment uses it ! Not sure if this is the default or if I set it like that ! )

Euhm my recommendation is to write all C/C++ code for confuscating contests with 1 and l symbols only for futher complexifieing analysis of code ! LOL..

I also took the courtesy of adding this warning to the wikipedia about courier new, feel free to start a wiki war with me and others ! LOL =D


My soon to be famous text added is:

This font is not suited for programming or any other serious documentation. The numeric one and small letter L look to similiar example: 1 vs l
On some development environments it's exactly the same depending on font size, for example at size 9 the one pixel difference is gone.


P.S.: When I discovered this bug I went like: "HOOOOLLYYYSHIIIT"

Then later: "PPPPPPFFFFFFffffff"

Also I am not the first to have found this, there are a few other mentions found by google !

P.S.2: For fun let me know if your current newsgroup/mail reader has this problem too, or your development environment, or document editor would be funny to know ! =D

P.S.3: I wonder if a NASA or ESA space lander will someday crash because of a wrong l vs 1 ! LOL. Perhaps by uploading a wrong script or wrong math formulas

P.S.4: I recommend writing a computer program that does a visual inspection of all symbols vs all symbols (for all font sizes) (and even all fonts !) and do a pixel by pixel comparision to detect any other similiar problems or perhaps too few pixel differences !

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
change the font size in T-Bird? Alex Clayton[_3_] AMD Thunderbird Processors 0 January 21st 12 10:51 PM
Very strange font size problem Mill Printers 1 October 5th 07 10:32 PM
ATI Font / Text Size Charlie Danger Ati Videocards 0 March 19th 07 05:57 PM
Font Size Enlarged - On It's Own!! Wes Crout Printers 1 June 14th 04 12:46 PM
How to set font size with PCL? Bill S. Printers 0 November 16th 03 02:14 AM

All times are GMT +1. The time now is 02:06 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Copyright 2004-2022 HardwareBanter.
The comments are property of their posters.