diff --git a/browser/components/MarkdownPreview.js b/browser/components/MarkdownPreview.js index 4d87e017..8f0e1d02 100644 --- a/browser/components/MarkdownPreview.js +++ b/browser/components/MarkdownPreview.js @@ -33,6 +33,15 @@ function buildStyle (fontFamily, fontSize, codeBlockFontFamily, lineNumber) { font-weight: normal; text-rendering: optimizeLegibility; } +@font-face { + font-family: 'Lato'; + src: url('${appPath}/resources/fonts/Lato-Black.woff2') format('woff2'), /* Modern Browsers */ + url('${appPath}/resources/fonts/Lato-Black.woff') format('woff'), /* Modern Browsers */ + url('${appPath}/resources/fonts/Lato-Black.ttf') format('truetype'); + font-style: normal; + font-weight: 700; + text-rendering: optimizeLegibility; +} ${markdownStyle} body { font-family: '${fontFamily.join("','")}'; @@ -83,6 +92,7 @@ h2 { body p { white-space: normal; + color: rgba(0,0,0,.84); } ` } diff --git a/resources/fonts/Lato-Black.ttf b/resources/fonts/Lato-Black.ttf new file mode 100644 index 00000000..3f7819f6 Binary files /dev/null and b/resources/fonts/Lato-Black.ttf differ diff --git a/resources/fonts/Lato-Black.woff b/resources/fonts/Lato-Black.woff new file mode 100644 index 00000000..a0ab25e9 Binary files /dev/null and b/resources/fonts/Lato-Black.woff differ diff --git a/resources/fonts/Lato-Black.woff2 b/resources/fonts/Lato-Black.woff2 new file mode 100644 index 00000000..3ee7cd44 Binary files /dev/null and b/resources/fonts/Lato-Black.woff2 differ