Skip to content

Commit

Permalink
Fix Usage of Rubik Font (#441)
Browse files Browse the repository at this point in the history
* Replace ttf font with woff2 font

* Ensure elements outside AppWrapper use Rubik

* Update changelog

* Replace otf format with woff2 and increase font weight
  • Loading branch information
alexpaxton authored Mar 6, 2020
1 parent e085fb0 commit 1d635a5
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

#### 2.0.1 (Unreleased)

- [#441](https://github.com/influxdata/clockface/pull/441): Fix rendering of Rubik font by using `woff2` format instead of `ttf`

## 2.0 (aka Pendulum)

- [#437](https://github.com/influxdata/clockface/pull/437): Introduce new color palette
Expand Down
Binary file removed src/Styles/Fonts/IBMPlexMono-Italic.otf
Binary file not shown.
Binary file added src/Styles/Fonts/IBMPlexMono-Medium.woff2
Binary file not shown.
Binary file removed src/Styles/Fonts/IBMPlexMono-Regular.otf
Binary file not shown.
Binary file added src/Styles/Fonts/IBMPlexMono-SemiBold.woff2
Binary file not shown.
Binary file removed src/Styles/Fonts/Rubik-Black.ttf
Binary file not shown.
Binary file added src/Styles/Fonts/Rubik-Black.woff2
Binary file not shown.
Binary file removed src/Styles/Fonts/Rubik-Bold.ttf
Binary file not shown.
Binary file added src/Styles/Fonts/Rubik-Bold.woff2
Binary file not shown.
Binary file removed src/Styles/Fonts/Rubik-Light.ttf
Binary file not shown.
Binary file added src/Styles/Fonts/Rubik-Light.woff2
Binary file not shown.
Binary file removed src/Styles/Fonts/Rubik-Medium.ttf
Binary file not shown.
Binary file added src/Styles/Fonts/Rubik-Medium.woff2
Binary file not shown.
Binary file removed src/Styles/Fonts/Rubik-Regular.ttf
Binary file not shown.
Binary file added src/Styles/Fonts/Rubik-Regular.woff2
Binary file not shown.
18 changes: 9 additions & 9 deletions src/Styles/fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,41 +2,41 @@
font-family: 'Rubik';
font-style: normal;
font-weight: 300;
src: url('./Fonts/Rubik-Light.ttf') format('ttf');
src: url('./Fonts/Rubik-Light.woff2') format('woff2');
}
@font-face {
font-family: 'Rubik';
font-style: normal;
font-weight: 400;
src: url('./Fonts/Rubik-Regular.ttf') format('ttf');
src: url('./Fonts/Rubik-Regular.woff2') format('woff2');
}
@font-face {
font-family: 'Rubik';
font-style: normal;
font-weight: 500;
src: url('./Fonts/Rubik-Medium.ttf') format('ttf');
src: url('./Fonts/Rubik-Medium.woff2') format('woff2');
}
@font-face {
font-family: 'Rubik';
font-style: normal;
font-weight: 700;
src: url('./Fonts/Rubik-Bold.ttf') format('ttf');
src: url('./Fonts/Rubik-Bold.woff2') format('woff2');
}
@font-face {
font-family: 'Rubik';
font-style: normal;
font-weight: 900;
src: url('./Fonts/Rubik-Black.ttf') format('ttf');
src: url('./Fonts/Rubik-Black.woff2') format('woff2');
}
@font-face {
font-family: 'IBMPlexMono';
font-style: normal;
font-weight: 400;
src: url('./Fonts/IBMPlexMono-Regular.otf') format('otf');
font-weight: 500;
src: url('./Fonts/IBMPlexMono-Medium.woff2') format('woff2');
}
@font-face {
font-family: 'IBMPlexMono';
font-style: italic;
font-weight: 400;
src: url('./Fonts/IBMPlexMono-Italic.otf') format('otf');
font-weight: 600;
src: url('./Fonts/IBMPlexMono-SemiBold.woff2') format('woff2');
}
1 change: 1 addition & 0 deletions src/Styles/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ html, body {
}

body {
font-family: 'Rubik', Helvetica, Arial, Tahoma, Verdana, sans-serif;
padding: 0;
width: 100%;
height: 100%;
Expand Down

0 comments on commit 1d635a5

Please # to comment.