Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/app/components/ThemeProvider/fontFaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import { Font, FontFace, FontName } from '#app/models/types/theming';
*/

const REITH_BASE_URL = 'https://static.files.bbci.co.uk/fonts/';
export const REITH_FONTS_DIR = `${REITH_BASE_URL}reith/r2.512/`;
const FONT_VERSION = '2.610';
export const REITH_FONTS_DIR = `${REITH_BASE_URL}reith/${FONT_VERSION}/`;
Comment thread
victranfield marked this conversation as resolved.

const FONTS_BASE_URL = `https://static.files.bbci.co.uk/ws/simorgh-assets/public/fonts/`;
const NOTO_SERIF_SINHALA_FONTS_DIR = `${FONTS_BASE_URL}NotoSerifSinhala/v1.00/`;
Expand Down Expand Up @@ -257,22 +258,22 @@ export const fontInfo: Record<FontName, FontInfo> = {
BBCReithSans_W_Bd: {
...REITH_SANS_BOLD['@font-face'],
downloadSrc: `${REITH_FONTS_DIR}BBCReithSans_W_Bd.woff2`,
version: 'r2.512',
version: FONT_VERSION,
},
BBCReithSans_W_Rg: {
...REITH_SANS_REGULAR['@font-face'],
downloadSrc: `${REITH_FONTS_DIR}BBCReithSans_W_Rg.woff2`,
version: 'r2.512',
version: FONT_VERSION,
},
BBCReithSerif_WNumbers_Lt: {
...REITH_SERIF_LIGHT['@font-face'],
downloadSrc: `${REITH_FONTS_DIR}subsets/BBCReithSerif_WNumbers_Lt.woff2`,
version: 'r2.512',
version: FONT_VERSION,
},
BBCReithSerif_W_Md: {
...REITH_SERIF_MEDIUM['@font-face'],
downloadSrc: `${REITH_FONTS_DIR}BBCReithSerif_W_Md.woff2`,
version: 'r2.512',
version: FONT_VERSION,
},
BBCReithQalam_W_Bd: {
...REITH_QALAM_BOLD['@font-face'],
Expand Down
8 changes: 4 additions & 4 deletions src/app/legacy/psammead/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ You can do this in pure CSS:
font-family: 'ReithSans';
font-style: normal;
font-weight: 400;
src: url('https://static.files.bbci.co.uk/fonts/reith/r2.512/BBCReithSans_W_Rg.woff2')
format('woff2'), url('https://static.files.bbci.co.uk/fonts/reith/r2.512/BBCReithSans_W_Rg.woff')
src: url('https://static.files.bbci.co.uk/fonts/reith/2.610/BBCReithSans_W_Rg.woff2')
format('woff2'), url('https://static.files.bbci.co.uk/fonts/reith/2.610/BBCReithSans_W_Rg.woff')
format('woff');
}
@font-face {
font-display: optional;
font-family: 'ReithSerif';
font-style: normal;
font-weight: 600;
Comment thread
victranfield marked this conversation as resolved.
src: url('https://static.files.bbci.co.uk/fonts/reith/r2.512/BBCReithSerif_W_Md.woff2')
format('woff2'), url('https://static.files.bbci.co.uk/fonts/reith/r2.512/BBCReithSerif_W_Md.woff')
src: url('https://static.files.bbci.co.uk/fonts/reith/2.610/BBCReithSerif_W_Md.woff2')
format('woff2'), url('https://static.files.bbci.co.uk/fonts/reith/2.610/BBCReithSerif_W_Md.woff')
format('woff');
}
</style>
Expand Down
Loading