Programming font charset
Bruno Bernard
Posts: 3
Hi everyone, I have to design a font dedicated to programming for a client, and I'm wondering about the required character set. I've observed that all the popular programming fonts feature extensive character sets, but I assume this is because they are derived from standard sans-serif charsets. And because, anyway, "who can do more can do less".
But I wouldn't like to burden my client with useless characters. So I'm inclined to reduce the font to the 95 ascii characters, as I believe coding doesn't requires any other characters. Am I correct ? or would a programming font should contain more ?
I could also put out my question this way : is there an "official" computer coding characters list, richer than the ascii list ?
But I wouldn't like to burden my client with useless characters. So I'm inclined to reduce the font to the 95 ascii characters, as I believe coding doesn't requires any other characters. Am I correct ? or would a programming font should contain more ?
I could also put out my question this way : is there an "official" computer coding characters list, richer than the ascii list ?
0
Comments
-
“Programming” is a very broad term. Most programming languages these days support using Unicode in source text for string literals or identifies, even if the language keywords don’t require more than ASCII characters. So, no, there isn’t any “official” set of characters for programming. You should find out from your client what their needs are.5
-
You need to ask you client what kinds of programming they are doing, what the content of the programming is, and whether they are handling text strings within the code and, if so, in what natural languages.*
* I would also ask what programming languages they are using. Chances are that the code itself is limited to ASCII, but there are some programming languages that use special characters.2 -
Swift for example even allows emoji as variable names:
- let π = 3.14159
- let 你好 = "你好世界"
- let 🐶🐮 = "dogcow"
2 -
Great, thank you all for that explanation. I was unaware of all those possibilities. In my experience, as soon as I leave an accented character in my code, in Robofont, I get an error message when compiling. I had concluded too quickly that programming was limited to ascii characters.
My client's programming language is Python. I found all the specs about encoding here.
And I'm definitely going to have to see with him the precise character set he needs.
Just like a normal font, actually.1
Categories
- All Categories
- 43 Introductions
- 3.7K Typeface Design
- 798 Font Technology
- 1K Technique and Theory
- 617 Type Business
- 444 Type Design Critiques
- 541 Type Design Software
- 30 Punchcutting
- 136 Lettering and Calligraphy
- 83 Technique and Theory
- 53 Lettering Critiques
- 483 Typography
- 301 History of Typography
- 114 Education
- 68 Resources
- 498 Announcements
- 79 Events
- 105 Job Postings
- 148 Type Releases
- 165 Miscellaneous News
- 269 About TypeDrawers
- 53 TypeDrawers Announcements
- 116 Suggestions and Bug Reports