You're reading: cp's mathem-o-blog

Using Computer Modern on the web

Computer Modern is the family of typefaces developed by Donald Knuth for TeX. It’s so good-looking that some scientists do research just so they can write it up in Computer Modern.

I love TeX and everybody knows it, so I was pretty delighted to hear that the cm-unicode project compiles versions of the Computer Modern fonts in a few formats, including TTF. Having the fonts in TTF format means you can use them in non-TeX environments, in particular on the web.

I’ve run the cm-unicode fonts through codeandmore’s @font-face kit generator to get all the weird formats that the various browsers insist on. The result is a set of packages containing everything you need to use the Computer Modern typefaces on the web.

I’ve put up a page containing examples of each face in use and links to the packages. Enjoy!

Leave a Reply

  • (will not be published)

$\LaTeX$: You can use LaTeX in your comments. e.g. $ e^{\pi i} $ for inline maths; \[ e^{\pi i} \] for display-mode (on its own line) maths.

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>