
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
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 1,023 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 0 open source maintainers 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.