computer-modern
Advanced tools
Comparing version
{ | ||
"name": "computer-modern", | ||
"version": "0.1.1", | ||
"version": "0.1.2-subsetting", | ||
"author": "Steven Petryk (Computer Modern fonts by Donald Knuth)", | ||
@@ -5,0 +5,0 @@ "description": "An NPM package containing the OFL-licensed Computer Modern fonts, and CSS @font-face declarations for them.", |
@@ -14,6 +14,6 @@ # Computer Modern Webfonts | ||
```css | ||
// Import all Computer Modern fonts | ||
/* Import all Computer Modern fonts */ | ||
@import "computer-modern/index.css"; | ||
// Import individual families | ||
/* Import individual families */ | ||
@import "computer-modern/cmu-bright.css"; | ||
@@ -26,5 +26,22 @@ @import "computer-modern/cmu-classical-serif.css"; | ||
@import "computer-modern/cmu-serif-upright-italic.css"; | ||
@import "computer-modern/cmu-serif.css"; // ← most common! | ||
@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: | ||
```css | ||
.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"; | ||
} | ||
``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
21639378
9.66%142
82.05%428
117.26%45
55.17%0
-100%