Skip to content

Commit

Permalink
fix: Setting font for linux (#2873)
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu authored Oct 17, 2023
1 parent 62b11cc commit 0c48a06
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 2 deletions.
10 changes: 10 additions & 0 deletions packages/neuron-ui/public/css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,13 @@
src: url('../fonts/JetBrainsMonoNL-Regular.otf') format('opentype'),
url('../fonts/JetBrainsMonoNL-Regular.ttf') format('opentype');
}

@font-face {
font-family: 'Inter-Regular';
src: url('../fonts/Inter-Regular.otf') format('opentype'), url('../fonts/Inter-Regular.ttf') format('opentype');
}

@font-face {
font-family: 'Inter-Medium';
src: url('../fonts/Inter-Medium.otf') format('opentype'), url('../fonts/Inter-Medium.ttf') format('opentype');
}
Binary file added packages/neuron-ui/public/fonts/Inter-Medium.otf
Binary file not shown.
Binary file added packages/neuron-ui/public/fonts/Inter-Medium.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions packages/neuron-ui/src/styles/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
outline: none !important;
-webkit-tap-highlight-color: none !important;
user-select: none;
font-family: 'PingFang SC';
font-family: 'PingFang SC', 'Microsoft YaHei', 'Inter-Regular', 'Inter-Medium';
}

[type='button'],
Expand All @@ -30,7 +30,7 @@ html {
}

body {
@include regular-text;
font-family: 'Inter-Regular', 'Inter-Medium';
margin: 0;
padding: 0;
background: #f8f8f8;
Expand Down

2 comments on commit 0c48a06

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Packaging for test is done in 6541956638

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

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

Packaging for test is done in 6542293053

Please sign in to comment.