Skip to content

Commit

Permalink
Migrate font to woff2 with ttf2woff2
Browse files Browse the repository at this point in the history
https://github.com/nfroidure/ttf2woff2

Co-authored-by: Jérémie Jadé <[email protected]>
Co-authored-by: Guillaume Lagorce <[email protected]>
  • Loading branch information
3 people committed Mar 6, 2024
1 parent c58e345 commit fb979b2
Show file tree
Hide file tree
Showing 11 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions addon/styles/pix-design-tokens/_fonts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,36 @@
font-weight: 700;
font-family: 'Nunito';
font-style: normal;
src: url('../@1024pix/pix-ui/fonts/Nunito/Nunito-Bold.ttf');
src: url('../@1024pix/pix-ui/fonts/Nunito/Nunito-Bold.woff2');
}

/* @deprecated - use Nunito */
@font-face {
font-weight: 500;
font-family: 'Open Sans';
font-style: normal;
src: url('../@1024pix/pix-ui/fonts/OpenSans/OpenSans-Medium.ttf');
src: url('../@1024pix/pix-ui/fonts/OpenSans/OpenSans-Medium.woff2');
}

@font-face {
font-weight: 400;
font-family: 'Roboto';
font-style: normal;
src: url('../@1024pix/pix-ui/fonts/Roboto/Roboto-Regular.ttf');
src: url('../@1024pix/pix-ui/fonts/Roboto/Roboto-Regular.woff2');
}

@font-face {
font-weight: 500;
font-family: 'Roboto';
font-style: normal;
src: url('../@1024pix/pix-ui/fonts/Roboto/Roboto-Medium.ttf');
src: url('../@1024pix/pix-ui/fonts/Roboto/Roboto-Medium.woff2');
}

@font-face {
font-weight: 700;
font-family: 'Roboto';
font-style: normal;
src: url('../@1024pix/pix-ui/fonts/Roboto/Roboto-Bold.ttf');
src: url('../@1024pix/pix-ui/fonts/Roboto/Roboto-Bold.woff2');
}

/* @deprecated - use Design Tokens */
Expand Down
Binary file removed public/fonts/Nunito/Nunito-Bold.ttf
Binary file not shown.
Binary file added public/fonts/Nunito/Nunito-Bold.woff2
Binary file not shown.
Binary file removed public/fonts/OpenSans/OpenSans-Medium.ttf
Binary file not shown.
Binary file added public/fonts/OpenSans/OpenSans-Medium.woff2
Binary file not shown.
Binary file removed public/fonts/Roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file added public/fonts/Roboto/Roboto-Bold.woff2
Binary file not shown.
Binary file removed public/fonts/Roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file added public/fonts/Roboto/Roboto-Medium.woff2
Binary file not shown.
Binary file removed public/fonts/Roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file added public/fonts/Roboto/Roboto-Regular.woff2
Binary file not shown.

0 comments on commit fb979b2

Please sign in to comment.