
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
computer-modern
Advanced tools
An NPM package containing the OFL-licensed Computer Modern fonts, and CSS @font-face declarations for them.
This is an NPM package that contains the Computer Modern fonts in webfont format (WOFF2 and TTF, because modern browsers don't really need much else).
The Computer Modern fonts are licensed under the SIL Open Font License. See the SIL Open Font License for details. This package merely provides the fonts in a different format, and is not a derivative work. The original font files can be downloaded from SourceForge.
This package breaks the fonts down based on family. The most common one is CMU Serif.
/* Import all Computer Modern fonts */
@import "computer-modern/index.css";
/* Import individual families */
@import "computer-modern/cmu-bright.css";
@import "computer-modern/cmu-classical-serif.css";
@import "computer-modern/cmu-concrete.css";
@import "computer-modern/cmu-sans-serif-demi-condensed.css";
@import "computer-modern/cmu-sans-serif.css";
@import "computer-modern/cmu-serif-extra.css";
@import "computer-modern/cmu-serif-upright-italic.css";
@import "computer-modern/cmu-serif.css"; /* ← most common! */
@import "computer-modern/cmu-typewriter-text-variable-width.css";
@import "computer-modern/cmu-typewriter-text.css";
Depending on what fonts you import, you can use them like this:
.example-selector {
font-family: "CMU Bright";
font-family: "CMU Classical Serif";
font-family: "CMU Concrete";
font-family: "CMU Sans Serif";
font-family: "CMU Sans Serif Demi Condensed";
font-family: "CMU Serif";
font-family: "CMU Serif Extra";
font-family: "CMU Serif Upright Italic";
font-family: "CMU Typewriter Text";
font-family: "CMU Typewriter Text Variable Width";
}
FAQs
An NPM package containing the OFL-licensed Computer Modern fonts, and CSS @font-face declarations for them.
The npm package computer-modern receives a total of 2,646 weekly downloads. As such, computer-modern popularity was classified as popular.
We found that computer-modern demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.