Revert "Update inter to 4.1"

This reverts commit 81065aaebd.
This commit is contained in:
Fedor Indutny
2025-03-31 14:51:58 -07:00
parent 3b91f6d00e
commit e982cd82a1
11 changed files with 80 additions and 6 deletions

View File

@@ -29,17 +29,54 @@
<title>Signal</title>
<link
rel="preload"
href="fonts/InterVariable.woff2"
href="fonts/inter-v3.19/Inter-BoldItalic.woff2"
as="font"
crossorigin
type="font/woff2"
/>
<link
rel="preload"
href="images/signal-logo.svg"
as="image"
crossorigin="anonymous"
href="fonts/inter-v3.19/Inter-Bold.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="fonts/inter-v3.19/Inter-SemiBoldItalic.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="fonts/inter-v3.19/Inter-Italic.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="fonts/inter-v3.19/Inter-SemiBold.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="fonts/inter-v3.19/Inter-Regular.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link
rel="preload"
href="fonts/inter-v3.19/Inter-Medium.woff2"
as="font"
type="font/woff2"
crossorigin
/>
<link rel="preload" href="images/signal-logo.svg" as="image" crossorigin />
<link
href="node_modules/sanitize.css/sanitize.css"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -3,7 +3,41 @@
@font-face {
font-family: 'Inter';
src: url('../fonts/InterVariable.woff2');
src: url('../fonts/inter-v3.19/Inter-BoldItalic.woff2');
font-weight: bolder;
font-style: italic;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/inter-v3.19/Inter-Bold.woff2');
font-weight: bolder;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/inter-v3.19/Inter-SemiBoldItalic.woff2');
font-weight: bold;
font-style: italic;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/inter-v3.19/Inter-Italic.woff2');
font-style: italic;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/inter-v3.19/Inter-SemiBold.woff2');
font-weight: bold;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/inter-v3.19/Inter-Medium.woff2');
font-weight: 500;
}
@font-face {
font-family: 'Inter';
src: url('../fonts/inter-v3.19/Inter-Regular.woff2');
}
@font-face {

View File

@@ -42,7 +42,10 @@ async function drawImage(
}
async function getFont(text: string): Promise<string> {
const font = new window.FontFace('Inter', 'url("fonts/InterVariable.woff2")');
const font = new window.FontFace(
'Inter',
'url("fonts/inter-v3.19/Inter-Regular.woff2")'
);
await font.load();
const measurerCanvas = document.createElement('canvas');