mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
@@ -29,17 +29,54 @@
|
|||||||
<title>Signal</title>
|
<title>Signal</title>
|
||||||
<link
|
<link
|
||||||
rel="preload"
|
rel="preload"
|
||||||
href="fonts/InterVariable.woff2"
|
href="fonts/inter-v3.19/Inter-BoldItalic.woff2"
|
||||||
as="font"
|
as="font"
|
||||||
crossorigin
|
crossorigin
|
||||||
type="font/woff2"
|
type="font/woff2"
|
||||||
/>
|
/>
|
||||||
<link
|
<link
|
||||||
rel="preload"
|
rel="preload"
|
||||||
href="images/signal-logo.svg"
|
href="fonts/inter-v3.19/Inter-Bold.woff2"
|
||||||
as="image"
|
as="font"
|
||||||
crossorigin="anonymous"
|
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
|
<link
|
||||||
href="node_modules/sanitize.css/sanitize.css"
|
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-face {
|
||||||
font-family: 'Inter';
|
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 {
|
@font-face {
|
||||||
|
|||||||
@@ -42,7 +42,10 @@ async function drawImage(
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function getFont(text: string): Promise<string> {
|
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();
|
await font.load();
|
||||||
|
|
||||||
const measurerCanvas = document.createElement('canvas');
|
const measurerCanvas = document.createElement('canvas');
|
||||||
|
|||||||
Reference in New Issue
Block a user