new monospace font
This commit is contained in:
parent
6fddf7cefc
commit
6993fa0551
3 changed files with 25 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ export default {
|
|||
serif: 'FreightText, serif',
|
||||
'sans-serif': 'Knowledge, sans-serif',
|
||||
monospace:
|
||||
'Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
|
||||
'"Fragment Mono", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',
|
||||
hed: 'var(--theme-font-family-sans-serif)',
|
||||
subhed: 'var(--theme-font-family-sans-serif)',
|
||||
body: 'var(--theme-font-family-serif)',
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ export default function Mermaid(props) {
|
|||
if (!code) return;
|
||||
const parseMermaid = async (code) => {
|
||||
try {
|
||||
const { svg } = await mermaid.render(name, code.trim() || '');
|
||||
const { svg } = await mermaid.render(name, code || '');
|
||||
setGraphSvg(svg);
|
||||
} catch (err) {
|
||||
setGraphSvg('');
|
||||
|
|
|
|||
|
|
@ -188,6 +188,29 @@
|
|||
font-display: swap;
|
||||
}
|
||||
|
||||
/* FRAGMENT MONOSPACE */
|
||||
@font-face {
|
||||
font-family: 'Fragment Mono';
|
||||
src: url('//graphics.thomsonreuters.com/style-assets/fonts/v1/FragmentMono-Regular.woff2')
|
||||
format('woff2'),
|
||||
url('//graphics.thomsonreuters.com/style-assets/fonts/v1/FragmentMono-Regular.woff')
|
||||
format('woff');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Fragment Mono';
|
||||
src: url('//graphics.thomsonreuters.com/style-assets/fonts/v1/FragmentMono-Italic.woff2')
|
||||
format('woff2'),
|
||||
url('//graphics.thomsonreuters.com/style-assets/fonts/v1/FragmentMono-Italic.woff')
|
||||
format('woff');
|
||||
font-weight: normal;
|
||||
font-style: italic;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
/* NOTO SANS JAPANESE */
|
||||
@font-face {
|
||||
font-family: 'Noto Sans JP';
|
||||
|
|
|
|||
Loading…
Reference in a new issue