From ca4cc2d7c00874c88b384ea5dcd55462513ab394 Mon Sep 17 00:00:00 2001 From: Xavier Mehrenberger Date: Tue, 13 Jul 2021 11:46:08 +0200 Subject: [PATCH] Fix settings.useMonospaceFontGlobal When settings.useMonospaceFontGlobal is set to `true`, it sets the default font to 'monospace'. This font seems to have been removed in a5164dad430d99f1fc0a7fd045c37ce56e70efa6. This commit sets the default font to "RobotoMono" which is a valid option. Tested in a Docker environment, setting `PAD_OPTIONS_USE_MONOSPACE_FONT` to `true` Signed-off-by: Xavier Mehrenberger --- src/static/js/pad.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/static/js/pad.js b/src/static/js/pad.js index ec156eb46..a7e80ede1 100644 --- a/src/static/js/pad.js +++ b/src/static/js/pad.js @@ -338,7 +338,7 @@ const handshake = () => { // If the Monospacefont value is set to true then change it to monospace. if (settings.useMonospaceFontGlobal === true) { - pad.changeViewOption('padFontFamily', 'monospace'); + pad.changeViewOption('padFontFamily', 'RobotoMono'); } // if the globalUserName value is set we need to tell the server and // the client about the new authorname