Live data from Hacker News

Programming fonts

s9w.github.io

31–40 of 72 posts

Re: Programming fonts

#31
post #16
post #13

Earlier quoted context omitted.

The problem is that non-retina images get doubled in size on a retina display, so it looks blurry. I suggest providing 2x sized images. You can use media queries to show different sized images or rely on down-sampling. There's a few different strategies.

oh wait, ALL images get 2x upscaled? That sounds crazy. There are double-sized samples in the compare mode. But if they're still upscaled by macOS, what can I do?

Mac and Windows will 2x all images for users with HiDpi displays. You can use CSS to display the images as background-image then media queries are available to serve differently sized images for HiDPI. Alternatively, most images look completely fine scaled down, they just get blurry scaled up. If you use an image that is 2x bigger than defined in the img tag it will play nice on HiDPI.

Re: Programming fonts

#32
Interesting project, but some of these look a bit... wrong to me. For example, ProFont is my favorite bitmap programming font and the renderer used makes it look bad. Just loaded it up in my Terminal.app to show how it /should/ look: [0]. Also while I'm at it, some cool fonts not mentioned that I think deserve some attention are tewi[1] and ProggyTiny[2]. Tewi glyphs are particularly nice [3].

[0]: http://i.imgur.com/3A0HEqu.png

[1]: https://github.com/lucy/tewi-font

[2]: http://www.proggyfonts.net/download/

[3]: https://rbt.asia/boards/g/img/0379/00/1383925217833.png

Re: Programming fonts

#33
I've tried various programming fonts, and I keep coming back to DejaVu Sans Mono. There are a few others that are as good, but none that seem so much better to be worth getting used to.

Re: Programming fonts

#37
post #34

Inconsolata-dz is a great font, though I recommend https://github.com/DeLaGuardo/Inconsolata-LGC for fans of Inconsolata that would like bold and italic weights, as well as extended glyphs.

Oh that looks great. I'll add it!

Re: Programming fonts

#38
post #10

Earlier quoted context omitted.

I don't know if I am allowed to use it. It's from Apple, no?

From the Font Book application: (sorry for the formatting. EDIT: Hey, it sort of worked!) Manufacturer Bitstream Designer Jim Lyles Copyright Copyright © 2009 Apple Inc. Copyright © 2006 by Tavmjong Bah. Copyright © 2003 by Bitstream, Inc. All Rights Reserved. Trademark Menlo is a Trademark of Apple Inc. Description Menlo is based upon the Open Source font Bitstream Vera and the public domain font Deja Vu. Bitstream…

Alright, well I should just do it and wait if something happens. I'll add it, thanks!

Re: Programming fonts

#39
post #24

Earlier quoted context omitted.

When you say Retina you mean high dpi since retina is just a trade marked word for dpi of 220 inches or higher and means different things at different models. Sorry to be a stickler but Retina is a worthless term and just causes confusion.

To any non-tech person, "high DPI" is probably more likely to cause confusion and is just as variable in definition. To (almost) any tech person, "retina" is common enough that everyone knows what you're talking about. Being trademarked doesn't really affect the meaning of a word once it's part of popular parlance - Kleenex, Band-Aid, Hoover, Google...

[deleted]

Re: Programming fonts

#40
post #32

Interesting project, but some of these look a bit... wrong to me. For example, ProFont is my favorite bitmap programming font and the renderer used makes it look bad. Just loaded it up in my Terminal.app to show how it /should/ look: [0]. Also while I'm at it, some cool fonts not mentioned that I think deserve some attention are tewi[1] and ProggyTiny[2]. Tewi glyphs are particularly nice [3]. [0]: http://i.imgur.com…

hmm in what way do you think it looks bad? I just double checked and the screenshots on the page are correct. I can see that some letters (MN) are too close together on the site. I'll try a different font version to see if that fixes it.

Thanks for the suggestions! I'll have a look and add them all if they work. But my internet right now is damaged so it might take some time.

Post reply on HN