Skip to content

Commit

Permalink
feat(fonts): add licensed ms_sans_serif font
Browse files Browse the repository at this point in the history
  • Loading branch information
arturbien committed Jul 17, 2020
1 parent e69dc98 commit dcf9144
Show file tree
Hide file tree
Showing 28 changed files with 86 additions and 13,797 deletions.
15 changes: 8 additions & 7 deletions .storybook/decorators/globalStyle.js
Expand Up @@ -2,25 +2,26 @@ import React from 'react';
import { createGlobalStyle } from 'styled-components';

import styleReset from '../../src/common/styleReset';
import MSSansSerif from '../../src/assets/fonts/MS-Sans-Serif.woff2';
import MSSansSerifBold from '../../src/assets/fonts/MS-Sans-Serif-Bold.woff2';
// TODO is there a way to keep import paths consistent with what end user will get?
import ms_sans_serif from '../../src/assets/fonts/dist/ms_sans_serif.woff2';
import ms_sans_serif_bold from '../../src/assets/fonts/dist/ms_sans_serif_bold.woff2';

const GlobalStyle = createGlobalStyle`
${styleReset}
@font-face {
font-family: 'MS-Sans-Serif';
src: url('${MSSansSerif}') format('woff2');
font-family: 'ms_sans_serif';
src: url('${ms_sans_serif}') format('woff2');
font-weight: 400;
font-style: normal
}
@font-face {
font-family: 'MS-Sans-Serif';
src: url('${MSSansSerifBold}') format("woff2");
font-family: 'ms_sans_serif';
src: url('${ms_sans_serif_bold}') format("woff2");
font-weight: bold;
font-style: normal
}
body {
font-family: 'MS-Sans-Serif', 'sans-serif';
font-family: 'ms_sans_serif', 'sans-serif';
}
`;

Expand Down
15 changes: 7 additions & 8 deletions README.md
Expand Up @@ -49,25 +49,24 @@ import { styleReset, List, ListItem, Divider } from 'react95';
// pick a theme of your choice
import original from "react95/dist/themes/original";
// original Windows95 font (optionally)
import MSSansSerif from "react95/dist/fonts/MS-Sans-Serif.woff2";
import MSSansSerifBold from "react95/dist/fonts/MS-Sans-Serif-Bold.woff2";

import ms_sans_serif from "react95/dist/fonts/ms_sans_serif.woff2";
import ms_sans_serif_bold from "react95/dist/fonts/ms_sans_serif_bold.woff2";

const GlobalStyles = createGlobalStyle`
@font-face {
font-family: 'MS-Sans-Serif';
src: url('${MSSansSerif}') format('woff2');
font-family: 'ms_sans_serif';
src: url('${ms_sans_serif}') format('woff2');
font-weight: 400;
font-style: normal
}
@font-face {
font-family: 'MS-Sans-Serif';
src: url('${MSSansSerifBold}') format("woff2");
font-family: 'ms_sans_serif';
src: url('${ms_sans_serif_bold}') format('woff2');
font-weight: bold;
font-style: normal
}
body {
font-family: "MS-Sans-Serif";
font-family: 'ms_sans_serif';
}
${styleReset}
`;
Expand Down
14 changes: 7 additions & 7 deletions docs/usage.mdx
Expand Up @@ -16,24 +16,24 @@ import { styleReset, List, ListItem, Divider } from 'react95';
// pick a theme of your choice
import original from "react95/dist/themes/original";
// original Windows95 font (optionally)
import MSSansSerif from "react95/dist/fonts/MS-Sans-Serif.woff2";
import MSSansSerifBold from "react95/dist/fonts/MS-Sans-Serif-Bold.woff2";
import ms_sans_serif from "react95/dist/fonts/ms_sans_serif.woff2";
import ms_sans_serif_bold from "react95/dist/fonts/ms_sans_serif_bold.woff2";

const GlobalStyles = createGlobalStyle`
@font-face {
font-family: 'MS-Sans-Serif';
src: url('${MSSansSerif}') format('woff2');
font-family: 'ms_sans_serif';
src: url('${ms_sans_serif}') format('woff2');
font-weight: 400;
font-style: normal
}
@font-face {
font-family: 'MS-Sans-Serif';
src: url('${MSSansSerifBold}') format("woff2");
font-family: 'ms_sans_serif';
src: url('${ms_sans_serif_bold}') format('woff2');
font-weight: bold;
font-style: normal
}
body {
font-family: "MS-Sans-Serif";
font-family: 'ms_sans_serif';
}
${styleReset}
`;
Expand Down
5 changes: 4 additions & 1 deletion rollup.config.js
Expand Up @@ -44,7 +44,10 @@ export default [
preserveModules: true,
plugins: [
copy({
targets: [{ src: './src/assets/*', dest: './dist/' }]
targets: [
{ src: './src/assets/fonts/dist/*', dest: './dist/fonts' },
{ src: './src/assets/images/*', dest: './dist/images' }
]
}),
replace({
'process.env.NODE_ENV': JSON.stringify(NODE_ENV)
Expand Down
Binary file removed src/assets/fonts/Digital-Clock.eot
Binary file not shown.
Binary file removed src/assets/fonts/Digital-Clock.ttf
Binary file not shown.
Binary file removed src/assets/fonts/Digital-Clock.woff
Binary file not shown.
Binary file removed src/assets/fonts/Digital-Clock.woff2
Binary file not shown.
Binary file removed src/assets/fonts/MS-Sans-Serif.eot
Binary file not shown.
230 changes: 0 additions & 230 deletions src/assets/fonts/MS-Sans-Serif.svg

This file was deleted.

Binary file removed src/assets/fonts/MS-Sans-Serif.woff
Binary file not shown.
Binary file removed src/assets/fonts/MS-Sans-Serif.woff2
Binary file not shown.
Binary file added src/assets/fonts/dist/ms_sans_serif.woff
Binary file not shown.
Binary file added src/assets/fonts/dist/ms_sans_serif.woff2
Binary file not shown.
Binary file added src/assets/fonts/dist/ms_sans_serif_bold.woff
Binary file not shown.
File renamed without changes.
Binary file removed src/assets/fonts/px_icons.woff2
Binary file not shown.
Binary file removed src/assets/fonts/px_sans_nouveaux.eot
Binary file not shown.
13,544 changes: 0 additions & 13,544 deletions src/assets/fonts/px_sans_nouveaux.svg

This file was deleted.

Binary file removed src/assets/fonts/px_sans_nouveaux.ttf
Binary file not shown.
Binary file removed src/assets/fonts/px_sans_nouveaux.woff
Binary file not shown.
Binary file removed src/assets/fonts/px_sans_nouveaux.woff2
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions src/assets/fonts/src/ms-sans-serif-bold/license.txt
@@ -0,0 +1,4 @@
The FontStruction “MS Sans Serif Bold”
(https://fontstruct.com/fontstructions/show/1384862) by “lou” is licensed
under a Creative Commons Attribution Share Alike license
(http://creativecommons.org/licenses/by-sa/3.0/).
26 changes: 26 additions & 0 deletions src/assets/fonts/src/ms-sans-serif-bold/readme.txt
@@ -0,0 +1,26 @@
The font file in this archive was created using Fontstruct the free, online
font-building tool.
This font was created by “lou”.
This font has a homepage where this archive and other versions may be found:
https://fontstruct.com/fontstructions/show/1384862

Try Fontstruct at http://fontstruct.com
It’s easy and it’s fun.

NOTE FOR FLASH USERS: Fontstruct fonts (fontstructions) are optimized for Flash.
If the font in this archive is a pixel font, it is best displayed at a font-size
of 11.

Fontstruct is sponsored by FontShop.
Visit them at https://fontshop.com
FontShop is the original independent font retailer. We’ve been around since
the dawn of digital type. Whether you need the right font or need to create the
right font from scratch, let our 26 years of experience work for you.

Fontstruct is copyright ©2017 Rob Meek

LEGAL NOTICE:
In using this font you must comply with the licensing terms described in the
file “license.txt” included with this archive.
If you redistribute the font file in this archive, it must be accompanied by all
the other files from this archive, including this one.
File renamed without changes.
4 changes: 4 additions & 0 deletions src/assets/fonts/src/ms-sans-serif/license.txt
@@ -0,0 +1,4 @@
The FontStruction “MS Sans Serif”
(https://fontstruct.com/fontstructions/show/1384746) by “lou” is licensed
under a Creative Commons Attribution Share Alike license
(http://creativecommons.org/licenses/by-sa/3.0/).
26 changes: 26 additions & 0 deletions src/assets/fonts/src/ms-sans-serif/readme.txt
@@ -0,0 +1,26 @@
The font file in this archive was created using Fontstruct the free, online
font-building tool.
This font was created by “lou”.
This font has a homepage where this archive and other versions may be found:
https://fontstruct.com/fontstructions/show/1384746

Try Fontstruct at http://fontstruct.com
It’s easy and it’s fun.

NOTE FOR FLASH USERS: Fontstruct fonts (fontstructions) are optimized for Flash.
If the font in this archive is a pixel font, it is best displayed at a font-size
of 11.

Fontstruct is sponsored by FontShop.
Visit them at https://fontshop.com
FontShop is the original independent font retailer. We’ve been around since
the dawn of digital type. Whether you need the right font or need to create the
right font from scratch, let our 26 years of experience work for you.

Fontstruct is copyright ©2017 Rob Meek

LEGAL NOTICE:
In using this font you must comply with the licensing terms described in the
file “license.txt” included with this archive.
If you redistribute the font file in this archive, it must be accompanied by all
the other files from this archive, including this one.

0 comments on commit dcf9144

Please sign in to comment.