Skip to content

Commit

Permalink
replace font Hero New with Ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
cioddi committed Oct 24, 2023
1 parent 2521cdd commit 9e1d80b
Show file tree
Hide file tree
Showing 18 changed files with 36 additions and 17 deletions.
Binary file removed public/assets/fonts/Hero-New-Bold-Italic.otf
Binary file not shown.
Binary file removed public/assets/fonts/Hero-New-Bold.otf
Binary file not shown.
Binary file removed public/assets/fonts/Hero-New-Light.otf
Binary file not shown.
Binary file removed public/assets/fonts/Hero-New-Medium.otf
Binary file not shown.
Binary file removed public/assets/fonts/Hero-New-Regular.otf
Binary file not shown.
Binary file removed public/assets/fonts/Hero-New-SemiBold.otf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-Bold.ttf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-BoldItalic.ttf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-Italic.ttf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-Light.ttf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-LightItalic.ttf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-Medium.ttf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-MediumItalic.ttf
Binary file not shown.
Binary file added public/assets/fonts/Ubuntu-Regular.ttf
Binary file not shown.
47 changes: 33 additions & 14 deletions public/assets/fonts/fonts.css
Original file line number Diff line number Diff line change
@@ -1,50 +1,69 @@
@charset "UTF-8";

@font-face {
font-family: 'Hero New';
font-family: 'Ubuntu';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url('/assets/fonts/Hero-New-Light.otf') format('opentype')
src: url('/assets/fonts/Ubuntu-Light.ttf') format('truetype')
}

@font-face {
font-family: 'Hero New';
font-family: 'Ubuntu';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url('/assets/fonts/Ubuntu-LightItalic.ttf') format('truetype')
}

@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('/assets/fonts/Hero-New-Regular.otf') format('opentype')
src: url('/assets/fonts/Ubuntu-Regular.ttf') format('truetype')
}

@font-face {
font-family: 'Hero New';
font-family: 'Ubuntu';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url('/assets/fonts/Ubuntu-Italic.ttf') format('truetype')
}

@font-face {
font-family: 'Ubuntu';
font-style: normal;
font-weight: 500;
font-display: swap;
src: url('/assets/fonts/Hero-New-Medium.otf') format('opentype')
src: url('/assets/fonts/Ubuntu-Medium.ttf') format('truetype')
}

@font-face {
font-family: 'Hero New';
font-style: normal;
font-weight: 600;
font-family: 'Ubuntu';
font-style: italic;
font-weight: 500;
font-display: swap;
src: url('/assets/fonts/Hero-New-SemiBold.otf') format('opentype')
src: url('/assets/fonts/Ubuntu-MediumItalic.ttf') format('truetype')
}

@font-face {
font-family: 'Hero New';
font-family: 'Ubuntu';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url('/assets/fonts/Hero-New-Bold.otf') format('opentype')
src: url('/assets/fonts/Ubuntu-Bold.ttf') format('truetype')
}

@font-face {
font-family: 'Hero New';
font-family: 'Ubuntu';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url('/assets/fonts/Hero-New-Bold-Italic.otf') format('opentype')
src: url('/assets/fonts/Ubuntu-BoldItalic.ttf') format('truetype')
}

body{

background-image: url(/assets/body-bgr.png);
Expand Down
2 changes: 1 addition & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ body {
background-color: #fff;
color: #282828;
font-size: 1rem;
font-family: "Hero New", sans-serif;
font-family: "Ubuntu", sans-serif;
font-weight: 400;
-webkit-text-size-adjust: none;
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ body {
/*font-family: 'OpenSansRegular', 'Arial','Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;*/
font-family: 'Hero New';
font-family: 'Ubuntu';
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
Expand Down
2 changes: 1 addition & 1 deletion src/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createTheme } from "@mui/material/styles";

const theme = createTheme({
typography: {
fontFamily: "Hero New, sans-serif",
fontFamily: "Ubuntu, sans-serif",
},
palette: {
mode: "light",
Expand Down

0 comments on commit 9e1d80b

Please sign in to comment.