From bf6cae9a0ec6c10b86794d7bf440df520dfd13e0 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 9 Aug 2017 14:42:07 +0100 Subject: [PATCH] Add Lato font definition to main.html Lato is the default "Preview font family" font. However, in the case that Lato is not installed on the user's system, it falls back to using a different font instead of using the font included with the application. --- lib/main.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/main.html b/lib/main.html index c76d49e0..4c10fcac 100644 --- a/lib/main.html +++ b/lib/main.html @@ -20,6 +20,15 @@ font-weight: normal; text-rendering: optimizeLegibility; } + @font-face { + font-family: 'Lato'; + src: url('../resources/fonts/Lato-Regular.woff2') format('woff2'), /* Modern Browsers */ + url('../resources/fonts/Lato-Regular.woff') format('woff'), /* Modern Browsers */ + url('../resources/fonts/Lato-Regular.ttf') format('truetype'); + font-style: normal; + font-weight: normal; + text-rendering: optimizeLegibility; + } #loadingCover{ background-color: #f4f4f4; position: absolute;