Skip to content

Commit ee932a3

Browse files
author
Dennis Labordus
authored
feat: make all fonts available offline (#294)
This removes the last remaining reliance on an internet connection at install time, which consisted in two requests to Google's servers for our fonts and icons. * Embedded Google Icons in application. Signed-off-by: Dennis Labordus <[email protected]> * Embedded Google Fonts in application. Signed-off-by: Dennis Labordus <[email protected]>
1 parent 7936227 commit ee932a3

21 files changed

+89
-42
lines changed

index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@
77
<meta name="Description" content="Open Substation Communication Designer is a bottom-up system configuration tool for projects described using IEC 61850-6 Edition 2 or greater.">
88
<base href="/">
99

10-
<link href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&family=Roboto:wght@300;400;500&display=swap" rel="stylesheet"> <!-- Poor unicode coverage -->
11-
<link href="https://fonts.googleapis.com/css?family=Material+Icons+Outlined&display=block" rel="stylesheet">
10+
<!-- Original URL from Google: https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@300&family=Roboto:wght@300;400;500&display=swap -->
11+
<link href="public/google/fonts/roboto-v27.css" rel="stylesheet">
12+
<link href="public/google/fonts/roboto-mono-v13.css" rel="stylesheet">
13+
<!-- Original URL from Google: https://fonts.googleapis.com/css?family=Material+Icons+Outlined&display=block -->
14+
<link href="public/google/icons/material-icons-outlined.css" rel="stylesheet">
1215
<link href="public/css/normalize.css" rel="stylesheet">
1316
<link rel="manifest" href="manifest.json">
1417
<link rel="icon" type="image/png" sizes="16x16" href="public/favicon-16x16.png">
21.9 KB
Binary file not shown.
15.2 KB
Binary file not shown.
12.4 KB
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/* roboto-mono-300 - latin */
2+
@font-face {
3+
font-family: 'Roboto Mono';
4+
font-style: normal;
5+
font-weight: 300;
6+
src: local(''),
7+
url('roboto-mono-v13-latin-300.woff2') format('woff2'), /* Super Modern Browsers */
8+
url('roboto-mono-v13-latin-300.woff') format('woff'), /* Modern Browsers */
9+
url('roboto-mono-v13-latin-300.ttf') format('truetype'); /* Safari, Android, iOS */
10+
}
35.4 KB
Binary file not shown.
19.9 KB
Binary file not shown.
15.4 KB
Binary file not shown.
35.6 KB
Binary file not shown.
20.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)