Skip to content

Commit

Permalink
feat(fonts): migrate from ttf to woff2
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbertrand authored Mar 4, 2024
1 parent 5c64ea9 commit 9ae8aaa
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-latin-700-normal.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/open-sans-latin-700-normal.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-latin-400-normal.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-latin-500-normal.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-latin-700-normal.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-latin-700-normal.woff2
Binary file not shown.
Binary file removed public/fonts/OpenSans/OpenSans-Medium.ttf
Binary file not shown.
Binary file not shown.
Binary file removed public/fonts/Roboto/Roboto-Bold.ttf
Binary file not shown.
Binary file removed public/fonts/Roboto/Roboto-Medium.ttf
Binary file not shown.
Binary file removed public/fonts/Roboto/Roboto-Regular.ttf
Binary file not shown.
Binary file added public/fonts/Roboto/roboto-latin-400-normal.woff2
Binary file not shown.
Binary file added public/fonts/Roboto/roboto-latin-500-normal.woff2
Binary file not shown.
Binary file added public/fonts/Roboto/roboto-latin-700-normal.woff2
Binary file not shown.

0 comments on commit 9ae8aaa

Please sign in to comment.