Computer-Modern

Making it easy to use the Computer Modern font in web pages.

The Computer Modern family of fonts was developed by Donald Knuth and described in detail in the book Computer Modern Typefaces.

The Computer Modern Unicode font project is hosted on sourceforge and is licensed under a modified X11 license, under which this project is also licensed.

Computer Modern Serif

Computer Modern Serif is a beautiful serifed font. It is the default font for TeX and LaTeX. You can use this font on your own site by including the following link in your HTML:


<link rel="stylesheet" type="text/css"
      href="http://spratt.github.io/Computer-Modern/cmserif.css" />
    

Then simply choose "Computer Modern Serif" as a font-family in CSS, e.g.:


.serif {
  font-family: "Computer Modern Serif", serif;
}
    

In which case, we create a class "serif" which uses this font, with the default serifed font as a fallback.

Computer Modern Sans

Computer Modern Sans is a lovely sans-serif font.


<link rel="stylesheet" type="text/css"
      href="http://spratt.github.io/Computer-Modern/cmsans.css" />
    

Then simply choose "Computer Modern Sans" as a font-family in CSS, e.g.:


.sans {
  font-family: "Computer Modern Sans", sans-serif;
}
    

In which case, we create a class "sans" which uses this font, with the default sans-serif font as a fallback.

Fork me on GitHub