Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #140 from Ashot-KR/fix-cyrillic-fonts
Browse files Browse the repository at this point in the history
update Lato fonts files to fix cyrillic characters
  • Loading branch information
soupette authored Jul 20, 2020
2 parents 0f61a78 + a7f5bb6 commit e64b993
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 4 deletions.
Binary file modified packages/buffetjs-styles/src/assets/fonts/lato/Lato-Black.ttf
100755 → 100644
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified packages/buffetjs-styles/src/assets/fonts/lato/Lato-Bold.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified packages/buffetjs-styles/src/assets/fonts/lato/Lato-Regular.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 12 additions & 4 deletions packages/buffetjs-styles/src/components/Fonts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,23 @@ import faSolidHeavy2 from '@fortawesome/fontawesome-free/webfonts/fa-solid-900.w

/* Lato Regular */
import latoRegular from '../../assets/fonts/lato/Lato-Regular.ttf';
import latoRegularWoff from '../../assets/fonts/lato/Lato-Regular.woff';
import latoRegularWoff2 from '../../assets/fonts/lato/Lato-Regular.woff2';

/* Lato SemiBold */
import latoSemiBold from '../../assets/fonts/lato/Lato-SemiBold.ttf';
import latoSemiBoldWoff from '../../assets/fonts/lato/Lato-SemiBold.woff';
import latoSemiBoldWoff2 from '../../assets/fonts/lato/Lato-SemiBold.woff2';

/* Lato Bold */
import latoBold from '../../assets/fonts/lato/Lato-Bold.ttf';
import latoBoldWoff from '../../assets/fonts/lato/Lato-Bold.woff';
import latoBoldWoff2 from '../../assets/fonts/lato/Lato-Bold.woff2';

/* Lato Black */
import latoBlack from '../../assets/fonts/lato/Lato-Black.ttf';
import latoBlackWoff from '../../assets/fonts/lato/Lato-Black.woff';
import latoBlackWoff2 from '../../assets/fonts/lato/Lato-Black.woff2';

const Font = createGlobalStyle`
@font-face {
Expand All @@ -43,31 +51,31 @@ const Font = createGlobalStyle`
/* Lato Regular - 400 */
@font-face {
font-family: 'Lato';
src: url(${latoRegular}) format('truetype');
src: url(${latoRegularWoff2}) format('woff2'), url(${latoRegularWoff}) format('woff'), url(${latoRegular}) format('truetype');
font-weight: 400;
font-style: normal;
};
/* Lato Semi-Bold - 500 */
@font-face {
font-family: 'Lato';
src: url(${latoSemiBold}) format('truetype');
src: url(${latoSemiBoldWoff2}) format('woff2'), url(${latoSemiBoldWoff}) format('woff'), url(${latoSemiBold}) format('truetype');
font-weight: 500;
font-style: normal;
};
/* Lato Bold - 600 */
@font-face {
font-family: 'Lato';
src: url(${latoBold}) format('truetype');
src: url(${latoBoldWoff2}) format('woff2'), url(${latoBoldWoff}) format('woff'), url(${latoBold}) format('truetype');
font-weight: 600;
font-style: normal;
};
/* Lato Black - 900 */
@font-face {
font-family: 'Lato';
src: url(${latoBlack}) format('truetype');
src: url(${latoBlackWoff2}) format('woff2'), url(${latoBlackWoff}) format('woff'), url(${latoBlack}) format('truetype');
font-weight: 900;
font-style: normal;
};`;
Expand Down

0 comments on commit e64b993

Please sign in to comment.