ansilove.js

A script to display ANSi and artscene related file formats on web pages
Log | Files | Refs | README | LICENSE

commit 2fce14aeab9442c21dc2fb0b1bc01e356dd9770e
parent 2829f44ace7cfd16152f3ac7176d665519da6b0b
Author: Andy Herbert <andy.herbert@gmail.com>
Date:   Sat, 10 Jan 2015 15:42:07 +0000

Only use bold text for amiga fonts when in ced or workbench mode
<https://github.com/ansilove/ansilove/commit/42ddac49e4b2068cd596adeed575a5fac36cbb72>. Fixes #5.

Diffstat:
Mansilove.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ansilove.js b/ansilove.js @@ -439,7 +439,7 @@ var AnsiLove = (function () { fontBuffer[bufferIndex].set(palette[fg], k); } else { // In case that this is an <amigaFont>, and the foreground colour <fg> is set to bold type, i.e. 8 to 15, make sure we 'double-width' the glyph. - if (amigaFont && (fg > 7) && (i > 0) && bits[j - 1]) { + if (amigaFont && (fg > 7) && (i > 0) && bits[j - 1] && (options.bits === "ced" || options.bits === "workbench")) { fontBuffer[bufferIndex].set(palette[fg], k); } else { fontBuffer[bufferIndex].set(palette[bg], k);