Skip to content

Commit 1f3d5f6

Browse files
gotwigjulien-moreau
authored andcommitted
Add new font (same font like on babylonjs.com)
1 parent 691380d commit 1f3d5f6

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

css/editor.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
/* Editor */
2+
3+
/* Fonts */
4+
5+
/* latin */
6+
@font-face {
7+
font-family: 'Roboto';
8+
font-style: normal;
9+
font-weight: 400;
10+
src: local('Roboto'), local('Roboto-Regular'), url(fonts/Roboto-reg-400.woff2) format('woff2');
11+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
12+
}
13+
/* latin */
14+
@font-face {
15+
font-family: 'Roboto';
16+
font-style: normal;
17+
font-weight: 700;
18+
src: local('Roboto Bold'), local('Roboto-Bold'), url(fonts/Roboto-bold-700.woff2) format('woff2');
19+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
20+
}
21+
222
html, body {
323
overflow: hidden;
424
width: 100%;
@@ -7,6 +27,15 @@ html, body {
727
padding: 0;
828
}
929

30+
body *{
31+
font-family: Roboto,sans-serif !important;
32+
font-weight: 400 !important;
33+
}
34+
35+
li.title, .lm_title, .w2ui-toolbar *{
36+
font-weight: 700 !important;
37+
}
38+
1039
#renderCanvas {
1140
position: absolute;
1241
width: 100%;

css/fonts/Roboto-bold-700.woff2

15.1 KB
Binary file not shown.

css/fonts/Roboto-reg-400.woff2

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)