mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-05 01:10:49 +00:00
@@ -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.
BIN
fonts/inter-v3.19/Inter-Bold.woff2
Normal file
BIN
fonts/inter-v3.19/Inter-Bold.woff2
Normal file
Binary file not shown.
BIN
fonts/inter-v3.19/Inter-BoldItalic.woff2
Normal file
BIN
fonts/inter-v3.19/Inter-BoldItalic.woff2
Normal file
Binary file not shown.
BIN
fonts/inter-v3.19/Inter-Italic.woff2
Normal file
BIN
fonts/inter-v3.19/Inter-Italic.woff2
Normal file
Binary file not shown.
BIN
fonts/inter-v3.19/Inter-Medium.woff2
Normal file
BIN
fonts/inter-v3.19/Inter-Medium.woff2
Normal file
Binary file not shown.
BIN
fonts/inter-v3.19/Inter-Regular.woff2
Normal file
BIN
fonts/inter-v3.19/Inter-Regular.woff2
Normal file
Binary file not shown.
BIN
fonts/inter-v3.19/Inter-SemiBold.woff2
Normal file
BIN
fonts/inter-v3.19/Inter-SemiBold.woff2
Normal file
Binary file not shown.
BIN
fonts/inter-v3.19/Inter-SemiBoldItalic.woff2
Normal file
BIN
fonts/inter-v3.19/Inter-SemiBoldItalic.woff2
Normal file
Binary file not shown.
@@ -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 {
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user