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

Commit

Permalink
Merge pull request #676 from bbc/675_nassim
Browse files Browse the repository at this point in the history
Add Nassim Persian fonts to psammead-styles
  • Loading branch information
Sareh authored Jun 24, 2019
2 parents 56d76e5 + e9b78bf commit 02aeb42
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/utilities/psammead-styles/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<!-- prettier-ignore -->
| Version | Description |
|---------|-------------|
| 0.6.0 | [PR#676](https://github.com/bbc/psammead/pull/676) Add Nassim Persian fonts v1.511 |
| 0.5.0 | [PR#573](https://github.com/bbc/psammead/pull/573) Add functions to get font styles for different services |
| 0.4.1 | [PR#547](https://github.com/bbc/psammead/pull/547) Create story for gel-foundations typographies |
| 0.4.0 | [PR#548](https://github.com/bbc/psammead/pull/548) Bump the reith font version from 2.302 to 2.511 |
Expand Down
2 changes: 2 additions & 0 deletions packages/utilities/psammead-styles/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const fontsExpectedExports = {
F_REITH_SANS_EXTRA_BOLD_ITALIC: 'string',
F_REITH_SANS_CONDENSED_REGULAR: 'string',
F_REITH_SANS_CONDENSED_BOLD: 'string',
F_NASSIM_PERSIAN_REGULAR: 'string',
F_NASSIM_PERSIAN_BOLD: 'string',
};

const coloursExpectedExports = {
Expand Down
2 changes: 1 addition & 1 deletion packages/utilities/psammead-styles/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/utilities/psammead-styles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbc/psammead-styles",
"version": "0.5.0",
"version": "0.6.0",
"description": "A collection of string constants for use in CSS, containing non-GEL styling details that are bespoke to specific BBC services and products.",
"repository": {
"type": "git",
Expand Down
23 changes: 23 additions & 0 deletions packages/utilities/psammead-styles/src/fonts.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const baseFontUrl = 'https://gel.files.bbci.co.uk/r2.511/';
const nassimPersianBaseUrl =
'https://ws-downloads.files.bbci.co.uk/fonts/NassimPersian/v1.511/';

// Serif
export const F_REITH_SERIF_REGULAR = `
Expand Down Expand Up @@ -183,3 +185,24 @@ export const F_REITH_SANS_CONDENSED_BOLD = `
src: url("${baseFontUrl}BBCReithSansCd_W_Bd.woff2") format("woff2"), url("${baseFontUrl}BBCReithSansCd_W_Bd.woff") format("woff");
font-display: optional;
}`;

// Nassim Persian
export const F_NASSIM_PERSIAN_REGULAR = `
@font-face {
font-family: "NassimPersian";
font-weight: 400;
font-style: normal;
src: url('${nassimPersianBaseUrl}normal.woff') format('woff'), url('${nassimPersianBaseUrl}normal.eot') format('eot'), url('${nassimPersianBaseUrl}normal.ttf') format('ttf');
font-display: optional;
}
`;

export const F_NASSIM_PERSIAN_BOLD = `
@font-face {
font-family: "NassimPersian";
font-weight: 700;
font-style: normal;
src: url('${nassimPersianBaseUrl}bold.woff') format('woff'), url('${nassimPersianBaseUrl}bold.eot') format('eot'), url('${nassimPersianBaseUrl}bold.ttf') format('ttf');
font-display: optional;
}
`;

0 comments on commit 02aeb42

Please sign in to comment.