From 11ff742dc6d2eb2497a7f3a95ec8d33ddb418e61 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sat, 21 Nov 2015 17:01:21 -0700 Subject: [PATCH] Don't set font to default (cp437) if it came from SAUCE --- core/art.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/art.js b/core/art.js index ef52f070..9cf0dd9b 100644 --- a/core/art.js +++ b/core/art.js @@ -529,7 +529,6 @@ function display(options, cb) { // ...this should come from sauce, be passed in, or defaulted var ansiFont = ''; if(options.font) { - // :TODO: how to set to ignore SAUCE? ansiFont = ansi.setSyncTERMFont(options.font); } else if(options.sauce) { var fontName = getFontNameFromSAUCE(options.sauce); @@ -537,7 +536,8 @@ function display(options, cb) { fontName = ansi.getSyncTERMFontFromAlias(fontName); } - if(fontName) { + // Don't set default (cp437) from SAUCE + if(fontName && 'cp437' !== fontName) { ansiFont = ansi.setSyncTERMFont(fontName); } }