News for hackers. Stuff that matters.
Re:Computer Modern on the Web by sp332 on Monday December 23, 2013 @11:47AM (#6955133)
From the transcript on this video http://www.webofstories.com/play/donald.knuth/55;jsessionid=...

Well, I came up with 25 of the 26 letters in the middle of June and they weren't beautiful but they were pretty close to being okay to my eyes at the time, but then there was the letter S. And I couldn't figure out how to draw a blasted S. And it has a very peculiar shape where it changes over from curves left, then right a little bit, and then back and forth, and what's going on in this shape. None of my mathematical formulas would handle it. And I spent several days without sleep up at the lab, trying different things and every time it would just look very ugly. And finally, I had to come home and go to bed and I showed my results to Jill and she said to me, ‘Well Don, why don't you make it s-shaped?’

Re:Computer Modern on the Web by fidotron on Monday December 23, 2013 @11:47AM (#6955134)
I swear that a good amount of the TeX love is cargo culting, including any appreciation of Computer Modern, which is a seriously ugly typeface. It's almost as if adopting it for the web is simply a grasp for mathematical credibility more than any real aesthetic consideration.

Note: I'm not criticising TeX, but changing fonts away from CM is about the first thing anyone concerned with quality output should be doing.

Re:Computer Modern on the Web by dragonwriter on Monday December 23, 2013 @11:51AM (#6955156)
> I swear that a good amount of the TeX love is cargo culting, including any appreciation of Computer Modern, which is a seriously ugly typeface.

Aesthetics can't be "cargo culting" -- to assert that it is requires misunderstanding aesthetics, cargo culting, or both.

> It's almost as if adopting it for the web is simply a grasp for mathematical credibility more than any real aesthetic consideration.

Familiarity in context is a real aesthetic consideration.

Re:Computer Modern on the Web by fidotron on Monday December 23, 2013 @11:56AM (#6955196)
Nonsense. As someone else posted here: "Something about the cm fonts gives them an air of respectability."

This means that almost every maths paper they read before was typeset in it, thus to be taken seriously they think they need to be as well. This is cargo culting because it is adopting the trappings of insightful study in the field of mathematics without necessarily doing anything of the sort.

Re:Computer Modern on the Web by twotwotwo on Monday December 23, 2013 @03:42PM (#6956418)
Well, two things. One, CMR shares some traits with other 'old' fonts (sometimes actually old, other times aiming for a dusty or scholarly air): lots of variation in stroke width, relatively prominent serifs, a 'true italic' where some italic letterforms look much different from their roman counterparts. (Knuth was making these for a textbook, so maybe he went for a look similar to textbooks of the time, at some intuitive level at least.)

If you look on Google Fonts, Playfair Display and Old Standard TT do some of those same things in (I think) also aiming for an old-timey air.

So, I think some of the "air of respectability" comes in part from traits shared with some other fonts, not just from appearing on math papers.

Two, the "feel" and aesthetic aspects of a font mostly do come from memory and associations. nytimes.com doesn't use a serif because it's more readable on the Web or something; they do it because serifs and newspapers go together in most folks' minds. Even the most thought-out arguments about fonts have associations as their bedrock: when Robert Bringhurst laments that a font shows no real axis with its variations in stroke width and therefore fails to evoke calligraphy, the axis he's missing is still important "merely" because of its association with calligraphy. Other than purely technical arguments about readability (which you could dispose of with an A/B test), most opinions about fonts are, one way or another, rooted in associations.

So if folks do appreciate CM partly because of their experience with it I don't see anything illegitimate about that (unless maybe it were utterly unreadable, rather than just quirky). You don't have to use or like the CM fonts, but I don't see how anyone's clearly indisputably wrong for liking them either, any more than with any other font.

Re:Computer Modern on the Web by marcosdumay on Monday December 23, 2013 @01:56PM (#6955891)
Well, ok, the people reading the text that respect it more are doing cargo cult... But that's a huge piece of non-news. We already know that people don't act rationally, and that if we try to sell something, it must fit our irrationality.

Using the font because it looks respectable isn't cargo cult at all. That's the rational thing to do... That is, once you verify that the effect is real.

Re:Computer Modern on the Web by dubya on Monday December 23, 2013 @04:00PM (#6956489)
The CM fonts are great for actual math, mostly because of the matching math characters. The only other near-complete math fonts I know of are Lucida Bright and a Times version, neither of which are free. Most of the other free solutions just smoosh something like Palatino for text together with the CM math fonts or use an incomplete math font with CM fallbacks.
Re:Computer Modern on the Web by ska on Monday December 23, 2013 @04:59PM (#6956776)
This is the real reason.

CM works pretty well right out of the box (and by default, so if you don't care that's what you get) for mathematics, very few fonts do and most of those are expensive.

What people seem to forget is what a terrible, terrible state of affairs it was that drove Knuth to spend 10 years or whatever on this stuff. Prior to that the options universally sucked.

Even now there really aren't many viable alternatives for typesetting mathematics, and TeX/LaTeX is by far the best of them. But it only comes with one (or two if you count Euler) with full symbol support.

Re:Computer Modern on the Web by twowordbird on Monday December 23, 2013 @11:51AM (#6955148)
Somebody always posts this comment re: Computer Modern, but I've never seen anybody offer up some of these strictly superior printing fonts (of which there are apparently many). Would you care to link some examples?
Re:Computer Modern on the Web by nwhitehead on Monday December 23, 2013 @12:30PM (#6955375)
I prefer Palatino when typesetting mathematics using latex. It looks nicer than Computer Modern and is super easy to use. Nowadays I use xelatex and actual fonts instead of staying stuck in the tex font ghetto.

http://www.tug.dk/FontCatalogue/palatino/

Re:Computer Modern on the Web by jasomill on Monday December 23, 2013 @08:16PM (#6957698)
Similarly, I've had nice results combining Zapf Renaissance Antiqua text (via XeTeX fontspec) with Palatino maths and Optima headings.
Re:Computer Modern on the Web by pseut on Monday December 23, 2013 @02:50PM (#6956162)
I've become a fan of bitstream charter lately[1], available through the mathdesign package

    \usepackage[bitstream-charter]{mathdesign}
I am not a designer, but I think it looks good with adobe's source code pro[2]:

    \usepackage{sourcecodepro}
[1] http://www.myfonts.com/fonts/bitstream/charter/ [2] http://store1.adobe.com/cfusion/store/html/index.cfm?event=d...
Re:Computer Modern on the Web by ska on Monday December 23, 2013 @05:06PM (#6956816)
The main problem isn't supporting other text fonts (including TTF), but the fact that those fonts don't properly support the symbols.

So all in all it's a bit of a nasty aesthetic trade-off. There are several packages that attempt to create symbol sets to match things like palatino, with varying success. Some are just terrible. And there are a few commercially available ones that do support most if not all symbols, so if it's worth a few hundred dollars to you there is that route.

Nothing has great solution for web, really. We're slowing moving from execrable to ugly but at least it is progress.

Re:Computer Modern on the Web by HitherYon on Monday December 23, 2013 @10:07PM (#6958012)
You might try the fouriernc package. I don't know if it's superior, but I do find it easier on the eyes.

http://www.ctan.org/tex-archive/fonts/fouriernc/

Re:Computer Modern on the Web by fidotron on Monday December 23, 2013 @11:52AM (#6955165)
Junicode is a far better classic serif, for example.
Re:Computer Modern on the Web by MaxGabriel on Monday December 23, 2013 @12:08PM (#6955262)
I hate the look of Computer Modern as well, finding its letters very thin and hard to read on mobile.

I can't really convince anyone on aesthetics, but please look at how the default zoom level on Mobile Safari renders many of the bold characters as having this weird double-line effect:

https://www.dropbox.com/s/enojel6ymuhfnlw/Photo%20Dec%2023%2...

https://www.dropbox.com/s/gkk1aqgduka40gw/Photo%20Dec%2023%2...

Re:Computer Modern on the Web by mrottenkolber on Monday December 23, 2013 @12:21PM (#6955326)
> I hate the look of Computer Modern as well, finding its letters very thin and hard to read on mobile.

Doesn't look any good on my screen either, but it's a print font I'd expect it to become pretty at around 210 dpi.

Re:Computer Modern on the Web by twotwotwo on Monday December 23, 2013 @04:48PM (#6956717)
Oof. I think that's this issue: http://stackoverflow.com/questions/5069752/ios-4-2-webfont-t...

I think the problem is that none of the TTFs include bold italic, so the browser generates a 'fake bold' of the italic. This time, MobileSafari is doing it oddly. Apparently a workaround is to fake bold yourself with -webkit-text-stroke (icky) and pretty workarounds would be to avoid bold italic or have a separate .ttf for it.

Re:Computer Modern on the Web by MaxGabriel on Monday December 23, 2013 @05:32PM (#6956986)
Hmm, perhaps. But it also occurs on plain bold text https://www.dropbox.com/s/h2zy36l447mj8j7/Photo%20Dec%2023%2...
Re:Computer Modern on the Web by twotwotwo on Tuesday December 24, 2013 @02:46PM (#6960827)
(Might be that the .ttf didn't have CM Roman bold either, then.)
Re:Computer Modern on the Web by davidgerard on Monday December 23, 2013 @12:59PM (#6955535)
You're not a real scientist unless you load Computer Modern into your copy of Word.
Re:Computer Modern on the Web by kleiba on Monday December 23, 2013 @01:47PM (#6955837)
You're not a real scientist if you use Word.
Re:Computer Modern on the Web by ChristianMarks on Monday December 23, 2013 @02:52PM (#6956175)
I have yet to persuade a single chemist, earth scientist or environmental scientist to switch from Word to LaTeX. They can be persuaded to use Libre Office, however.
Re:Computer Modern on the Web by kleiba on Monday December 23, 2013 @04:01PM (#6956492)
In all fairness, the great-grant parent's post wasn't completely serious, nor was mine ;-)
Re:Computer Modern on the Web by ChristianMarks on Monday December 23, 2013 @07:43PM (#6957579)
Yes, I knew that, but I didn't let that stop me!
Re:Computer Modern on the Web by davidgerard on Monday December 23, 2013 @02:01PM (#6955921)
You need to talk to more actual scientists.
Re:Computer Modern on the Web by pseut on Monday December 23, 2013 @02:45PM (#6956140)
I was going to disagree with the "cargo culting" statement, but then read the OP...
Re:Computer Modern on the Web by pnathan on Monday December 23, 2013 @12:42PM (#6955439)
Sweet! For some reason, I find Computer Modern to be perhaps the most beautiful serif font I've come across, handily beating out any competitor I've looked at.
Re:Computer Modern on the Web by brennen on Monday December 23, 2013 @03:42PM (#6956416)
I think that most of what I appreciate about Computer Modern is that it sends the neighborhood font nerds into fits of white-hot rage every time I use it.
Re:Computer Modern on the Web by illicium on Monday December 23, 2013 @05:12PM (#6956858)
Even if you use a Computer Modern webfont, your page won't look even remotely as good as if it was produced using TeX. Browsers are lacking proper justification (Knuth-Plass line breaking), hyphenation (which kind of exists in CSS3), microtype optimizations (e.g. hanging punctuation) and automatic ligatures. There are some hacks [1] to solve these issues, but easy immaculate typography on the web is currently a no-go.

[1] http://www.bramstein.com/projects/typeset/

Re:Computer Modern on the Web by noelwelsh on Monday December 23, 2013 @03:48PM (#6956441)
Here's an article typeset in Computer Modern that was recently on the HN frontpage: http://swannodette.github.io/2013/12/17/the-future-of-javasc...

Great article, but ZOMG is the typesetting atrocious! Look at the kerning between F and u in Future, and a and S in JavSscript. So, so bad.

Knuth's contribution to typography was great for its time but with so many excellent free fonts available we have moved beyond the need for Computer Modern.

Re:Computer Modern on the Web by leephillips on Monday December 23, 2013 @05:15PM (#6956876)
Do these kerning problems have anything to do with the design of Computer Modern or with TeX? I don't think so; whatever you're seeing on that page results from the interaction of your browser, the markup, and the MathJax scripts.
Re:Computer Modern on the Web by reeses on Monday December 23, 2013 @06:30PM (#6957298)
A bigger kern on the 'f' in 'future' would create a ligature. I suspect the web font and, more importantly, the HTML creator would not perform the substitution.
Re:Computer Modern on the Web by taeric on Monday December 23, 2013 @03:50PM (#6956445)
Knuth's contribution to typography was far greater than a single font. Just saying. I'm curious to see that article actually typeset with his work.
Re:Computer Modern on the Web by rz2k on Monday December 23, 2013 @11:44AM (#6955121)
I use Computer Modern Typewriter Oblique (which is plain slanted) for my font in terminals and text editors. I really like how it looks. Unfortunately, some IDEs like IntelliJ ignore the oblique part and print the characters upright. However oblique is compatible with syntax highlighting that uses italics, because the true italic form of CM Typewriter resembles a script typewriter.

Anyway, I always consider adding CM Typewriter Oblique to lists of the best monospaced fonts, but consider that maybe it will come across as too "hipster".

Re:Computer Modern on the Web by SeanLuke on Monday December 23, 2013 @04:28PM (#6956621)
I really dislike Computer Modern.

I think it is an amateur typeface. Its italic glyphs are at different angles from one another. None of its bowls are consistent. It has strange and discordant differences in thicknesses across letters. The serif fonts are mangled in kerning and positioning in really weird ways. And the roman is extremely wide, extremely thin, and surprisingly hard to read when used for its primary purpose: papers.

I think CM is predominant in TeX not because it's a good looking typeface. It's not predominant in TeX because it's nicely compatible with provided math symbols (which it is). CM is predominant only because for a very, very long time it was the only option available, and so people got used to scientific papers being "supposed" to look like that.

But this is not a field known for its typesetting aesthetics: heck even as late as 2003 the large majority of these papers were still using the CM bitmaps rather than vector fonts, resulting in an unreadable mess when converted to PDF files. Tables are written so as to absolutely maximize the number of horizontal and vertical rule lines you can possibly stuff into a text table. The ACM's official style file is so awful and broken that multiple style files have been created to secretly patch it. Some have historically been filled with swear words. And I cannot count the number of papers nowadays which write things like $foo$, not realizing that this de-kerns the letters.

Also, it appears the version from this link is missing its kerning.

Re:Computer Modern on the Web by ubercow13 on Monday December 23, 2013 @07:47PM (#6957594)
What might a paper use $foo$ for? Aside from a product of three variables which presumably shouldn't be kerned
Re:Computer Modern on the Web by Athas on Tuesday December 24, 2013 @05:51AM (#6958986)
A multi-letter variable name.
Re:Computer Modern on the Web by ivan_ah on Monday December 23, 2013 @11:41AM (#6955101)
This is very cool and will allow for a consistent appearance of book math content both online and offline.

Something about the cm fonts gives them an air of respectability.

Thx for porting these fonts!

Re:Computer Modern on the Web by Millennium on Monday December 23, 2013 @01:21PM (#6955660)
Glad to hear it. I've been thinking about blogging a read-through of Knuth, and I wanted to use the font as an homage.
Re:Computer Modern on the Web by cec on Monday December 23, 2013 @06:38PM (#6957334)
I absolutely love the "Bright" font, and have immediately started using it [1]. It didn't quite look right on the headings though, so I'll stick with Open Sans for those.

[1] http://chriscummins.github.io/

Re:Computer Modern on the Web by DanBC on Monday December 23, 2013 @01:33PM (#6955730)
edit: This is my connection! Sorry.

http://imgur.com/KovolXb

Using Chrome (latest?) on Vista. Pink blobs are near, not on, flaws.

Re:Computer Modern on the Web by twotwotwo on Monday December 23, 2013 @01:39PM (#6955770)
Chrome beta is doing this to me on a lot of sites that load Web fonts. It's like it laid out the page using the metrics from the Web font, but then rendered it using a system fallback font.
Re:Computer Modern on the Web by leephillips on Monday December 23, 2013 @05:28PM (#6956964)
Re:Computer Modern on the Web by TylerE on Monday December 23, 2013 @01:54PM (#6955877)
Looks great here: http://i.imgur.com/Wmh9oel.png

Google Chrome 31.0.1650.63 (Official Build 238485) OS Mac OS X

Re:Computer Modern on the Web by rsofaer on Monday December 23, 2013 @04:54PM (#6956739)
Yeah, the page is pretty messed up on my Chrome/Win7 also.