Code Monkey home page Code Monkey logo

cm-web-fonts's Introduction

Computer Modern Web Fonts

The Computer Modern Font Family (the default LaTeX font), delivered on the web.

Usage

Link this stylesheet: https://cdn.jsdelivr.net/gh/aaaakshat/cm-web-fonts@latest/fonts.css in your html <head>.

HTML Code

<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/aaaakshat/cm-web-fonts@latest/fonts.css">

Web demo

Check out https://checkmyworking.com/cm-web-fonts/ to get download links and see a customisable demo of the Computer Modern font family. Or visit TeXBlog to view a working implementation of a site fetching from this CDN.

Example Code

<head>
  <!-- Other imports... -->
  <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/gh/aaaakshat/cm-web-fonts@latest/fonts.css">
  <style>
    body {
      font-family: "Computer Modern Serif", serif;
    }
  </style>
</head>

License

The font is licensed under the SIL Open Font License. The license gives you permission to use them online and redistribute/modify/study them so long as you keep the resulting fonts under the Open Font License. I'm not a lawyer and I can't give legal advice, so make sure to read the official OFL FAQs.

Fonts

The folowing font families are included (with bold and italics):

  • 'Computer Modern Bright'
  • 'Computer Modern Concrete'
  • 'Computer Modern Sans'
  • 'Computer Modern Serif'
  • 'Computer Modern Typewriter'

Delivery

Files are served via jsDelivr, an free, open-source CDN supported by companies like CloudFlare. jsDelivr serves ~72 billion requests/month and is has been reliable for me; however, there's no such thing as a free lunch and I cannot guarantee 100% uptime. Use it at your own risk.

Credits

Repo forked from @dreampulse, cm-unicode web fonts compiled by Christian Perfect from the Computer Modern Unicode fonts created by Andrey V. Panov. The original Computer Modern fonts were created by Donald Knuth et al.

cm-web-fonts's People

Contributors

bitmaks avatar dreampulse avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.