Skip to content

Commit

Permalink
Merge pull request #39 from rfoel/develop
Browse files Browse the repository at this point in the history
fix: update font for better mobile support
  • Loading branch information
rfoel authored Aug 25, 2020
2 parents f19f63b + f972876 commit ba06bfd
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 19 deletions.
15 changes: 2 additions & 13 deletions components/Text.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,8 @@ import styled, { css } from 'styled-components'
const Text = styled.div(
() => css`
display: inline;
font-family: 'Programme', sans-serif;
-moz-font-feature-settings: 'pnum' on, 'lnum' on, 'ss04' on, 'ss03' on,
'ss05' on, 'ss06' on, 'ss07' on, 'ss08' on, 'ss09' on, 'ss10' on,
'ss11' on, 'ss12' on, 'ss13' on, 'ss20' on, 'ss14' on, 'ss15' on,
'ss18' on, 'ss19' on;
-webkit-font-feature-settings: 'pnum' on, 'lnum' on, 'ss04' on, 'ss03' on,
'ss05' on, 'ss06' on, 'ss07' on, 'ss08' on, 'ss09' on, 'ss10' on,
'ss11' on, 'ss12' on, 'ss13' on, 'ss20' on, 'ss14' on, 'ss15' on,
'ss18' on, 'ss19' on;
font-feature-settings: 'pnum' on, 'lnum' on, 'ss04' on, 'ss03' on, 'ss05' on,
'ss06' on, 'ss07' on, 'ss08' on, 'ss09' on, 'ss10' on, 'ss11' on,
'ss12' on, 'ss13' on, 'ss20' on, 'ss14' on, 'ss15' on, 'ss18' on,
'ss19' on;
font-family: 'TT Firs Neue', -apple-system, system-ui, 'Segoe UI', Roboto,
Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
`,
)

Expand Down
Binary file added public/TTFirsNeue-DemiBold.eot
Binary file not shown.
Binary file added public/TTFirsNeue-DemiBold.ttf
Binary file not shown.
Binary file added public/TTFirsNeue-DemiBold.woff
Binary file not shown.
Binary file added public/TTFirsNeue-DemiBold.woff2
Binary file not shown.
Binary file removed public/programme.woff2
Binary file not shown.
16 changes: 10 additions & 6 deletions styles/index.css
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
@font-face {
font-family: 'Programme', sans-serif;
font-display: swap;
font-family: 'TT Firs Neue';
font-style: normal;
font-weight: normal;
src: url('/public/programme.woff2') format('woff2');
font-weight: 600;
src: url('/public/TTFirsNeue-DemiBold.eot');
src: url('/public/TTFirsNeue-DemiBold.eot?#iefix') format('embedded-opentype'),
url('/public/TTFirsNeue-DemiBold.woff2') format('woff2'),
url('/public/TTFirsNeue-DemiBold.woff') format('woff'),
url('/public/TTFirsNeue-DemiBold.svg#TTFirsNeue-DemiBold') format('svg');
}

html,
body,
#__next {
display: flex;
font-family: BlinkMacSystemFont, -apple-system, 'Segoe UI', Roboto, Oxygen,
Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', Helvetica,
Arial, sans-serif;
font-family: -apple-system, system-ui, 'Segoe UI', Roboto, Oxygen, Ubuntu,
Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
flex-direction: column;
flex-grow: 1;
margin: 0;
Expand Down

1 comment on commit ba06bfd

@vercel
Copy link

@vercel vercel bot commented on ba06bfd Aug 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.