urbit-paper-renderer
Advanced tools
Comparing version 2.0.8 to 2.0.9
{ | ||
"name": "urbit-paper-renderer", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"private": false, | ||
@@ -36,2 +36,3 @@ "repository": { | ||
"gulp-header": "^2.0.7", | ||
"gulp-inline-fonts": "github:urbit/gulp-inline-fonts", | ||
"gulp-minify": "^3.1.0", | ||
@@ -43,2 +44,3 @@ "gulp-rename": "^1.4.0", | ||
"gulp-shell": "^0.6.5", | ||
"gulp-simplefont64": "github:urbit/gulp-simplefont64", | ||
"husky": "^3.0.3", | ||
@@ -45,0 +47,0 @@ "jest": "^24.9.0", |
@@ -257,2 +257,17 @@ # PaperRenderer | ||
In the past, we've used [font squirrel](https://www.fontsquirrel.com/tools/webfont-generator) to generate base64 encoded fonts embedded in a CSS file for inclusion in an application. | ||
You can also use the `gulp fonts` command. You'll have to manually change the output to follow this format: | ||
```css | ||
@font-face { | ||
font-family: 'myfont'; | ||
src: url(data:font/truetype;charset=utf-8;base64,<<base64 string>>) format('truetype'); | ||
font-weight: normal; | ||
font-style: normal; | ||
} | ||
``` | ||
Font names are critical. `Inter UI` is not the same as `Inter`. Any discrepancy will cause fonts to not render. You may have to add the font-weight param manually on some fonts, or correct the font-family name. | ||
### Miscellaneous | ||
@@ -259,0 +274,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 6 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4343328
21
37797
294
45
7