Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

dependencies: Patch source-sans to correct format() for variable fonts.

Anders Kaseorg460eb04a2ac4
diff --git a/package.json b/package.json
index bb3153ffe94..97c231718b8 100644
--- a/package.json
+++ b/package.json
@@ -148,6 +148,9 @@
"pnpm": {
"overrides": {
"source-map@^0.6": "npm:[email protected]"
+ },
+ "patchedDependencies": {
}
},
"nyc": {
diff --git a/patches/[email protected] b/patches/[email protected]
new file mode 100644
index 00000000000..c2ae14739a4
--- /dev/null
+++ b/patches/[email protected]
@@ -0,0 +1,28 @@
+diff --git a/source-sans-3VF.css b/source-sans-3VF.css
+index 99213736a3fdb72eb4e3fbdd9dc342883bf2ec13..a6821c48738a673b098d99372e023604b1bad056 100755
+--- a/source-sans-3VF.css
++++ b/source-sans-3VF.css
+@@ -3,9 +3,9 @@
+ font-weight: 200 900;
+ font-style: normal;
+ font-stretch: normal;
+- src: url('WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2') format('woff2'),
+- url('WOFF/VAR/SourceSans3VF-Roman.ttf.woff') format('woff'),
+- url('VAR/SourceSans3VF-Roman.ttf') format('truetype');
++ src: url('WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2') format('woff2-variations'),
++ url('WOFF/VAR/SourceSans3VF-Roman.ttf.woff') format('woff-variations'),
++ url('VAR/SourceSans3VF-Roman.ttf') format('truetype-variations');
+ }
+
+ @font-face{
+@@ -13,7 +13,7 @@
+ font-weight: 200 900;
+ font-style: italic;
+ font-stretch: normal;
+- src: url('WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2') format('woff2'),
+- url('WOFF/VAR/SourceSans3VF-Italic.ttf.woff') format('woff'),
+- url('VAR/SourceSans3VF-Italic.ttf') format('truetype');
++ src: url('WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2') format('woff2-variations'),
++ url('WOFF/VAR/SourceSans3VF-Italic.ttf.woff') format('woff-variations'),
++ url('VAR/SourceSans3VF-Italic.ttf') format('truetype-variations');
+ }
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 4e15b33cdcc..cf8b29817d1 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -7,6 +7,11 @@ settings:
overrides:
source-map@^0.6: npm:[email protected]
+patchedDependencies:
+ hash: 4n7ij66tzyhzaqnxsenbilrxr4
+ path: patches/[email protected]
+
dependencies:
'@babel/core':
specifier: ^7.5.5
@@ -211,7 +216,7 @@ dependencies:
version: 2.38.0
source-sans:
specifier: ^3.28.0
- version: 3.46.0
+ version: 3.46.0(patch_hash=4n7ij66tzyhzaqnxsenbilrxr4)
spectrum-colorpicker:
specifier: ^1.8.1
version: 1.8.1
@@ -10815,9 +10820,10 @@ packages:
engines: {node: '>=0.10.0'}
dev: false
+ /[email protected](patch_hash=4n7ij66tzyhzaqnxsenbilrxr4):
resolution: {integrity: sha512-bVC2YX4VNiv5vMcy77dL0XKsNp794ThfynNsr+FqSAwk8TGG0pZsg7eUQi6yHwaRBMVmZ3Aaf4FY46dxIIGgsg==}
dev: false
+ patched: true
resolution: {integrity: sha512-EeajNjfN9zMnULLwhZZQU3GWBoFNkbngTUPfaawT4RkMiviTxcX0qfhVbGey39mfctfDHkWtuecgQ8NJcyQWHg==}