Mobile app version of vmapp.org
Login or Join
Shelley591

: Courier New-like font with Unicode support? I'm a programmer and I'm really used to the Courier New font. I am quite picky about it - I find other fonts (including other monospace fonts) ugly

@Shelley591

Posted in: #Fonts

I'm a programmer and I'm really used to the Courier New font. I am quite picky about it - I find other fonts (including other monospace fonts) ugly in comparison.

However, now I have to work on some code that includes Unicode strings, and Courier New does not have full support for Unicode.

Could someone recommend a (monospace) font that is very similar to Courier New, but has Unicode support?

10.04% popularity Vote Up Vote Down


Login to follow query

More posts by @Shelley591

4 Comments

Sorted by latest first Latest Oldest Best

 

@Caterina889

I know this is an old question but I figured that as a programmer I might be able to offer up some advice. I use FreeMono on all of my text editors and IDEs. It looks quite similar to Courier New and has better support for Unicode. From the information I can obtain from the font files themselves, Courier New supports 3,248 different characters while FreeMono supports 4,177 characters. I'm not sure exactly how much support FreeMono haS for the math and logic Unicode symbols, but I do know that it is better than Courier New by a considerable margin.

10% popularity Vote Up Vote Down


 

@Sarah814

Try GNU Free Font's Free Mono. It's, in fact, so far the only monospace font which I've found which is both legible and relatively complete in terms of unicode coverage.

Even more ideal for your particular case, it is in fact ultimately based on Courier.

10% popularity Vote Up Vote Down


 

@Eichhorn212

You could always use Courier New as your main font, and fall back to some other font with a broader character palette (such as DejaVu Sans Mono or perhaps Everson Mono) for the missing symbols.

This is what your browser does if you set Courier New as your preferred monospaced font and then ask it to display something like ∀x: ∃y: x ∊ y. (Well, except for the fact that this site already specifies its own list of preferred monospace fonts, with Courier New pretty far down the list, so your probably won't see x and y above in Courier New unless you also disable or override the SE style sheet.)

Of course, this won't always look too good, but in your case, you say that the extra characters you need are mostly mathematical symbols. These look quite distinct from normal Latin letters anyway, so the mismatch between different fonts may not be so apparent as it might otherwise be, especially if you choose the fallback font carefully.

10% popularity Vote Up Vote Down


 

@Turnbaugh909

Few if any fonts have "full support for Unicode". Unicode 6.0 has 109,449 code points. It's quite expensive from a design perspective to manually create each one of those glyphs when most people will only be using a small fraction of them, not to mention from a file size perspective.

Courier New is actually among the fonts with relatively good Unicode support at 3248 glyphs (in comparison Lucida Sans Unicode only has 1776).

The MingLiU/PMingLiU fonts also support a very wide range of code points, but that's because these are CKJ (Chinese, Korean, Japanese) fonts, and most of the supported code points are from the CKJ blocks. So unless you need a CKJ font, they're not much use. And even then, they're broken down into ~6 different fonts covering different code blocks with 30~40k code points each.

For general-purpose language support, Arial Unicode MS is the best that I know of. It has near complete support across 64 different code blocks, which covers 50,377 code points.

Beyond that, there's just the Unicode BMP Fallback SIL font, which is a debugging font. It covers all Unicode 5.1 code points, but each glyph is just a rectangular box containing the hex code for that code point. And most OSes come with this font and will display it when a Unicode font lacks a glyph for a particular character.

I mean, it's possible there might be a crazy typographer or foundry out there who's created a font with glyphs for all Unicode 5.1 or 6.0 code points, but it would probably be really, really expensive.

Most people would rather just have fonts that cover specific language blocks and use multiple fonts to provide full multilingual support. Especially as different families of languages have intrinsically different typographic styles, so the glyphs would end up looking very different anyway.

Edit: As Mr Lister pointed out, no font at present can support the full Unicode character set since each font can only contain 65536 glyphs max. You might be able to exceed this limit with TruTypeCollections but they would still be separate fonts, just in a single file.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme