diff --git a/buba/static/display.js b/buba/static/display.js index c1493b0..d30b9a5 100644 --- a/buba/static/display.js +++ b/buba/static/display.js @@ -49,7 +49,6 @@ export default class { // rowSvg.setAttribute("width", "320"); // rowSvg.setAttribute("height", "15"); - let rect = document.createElementNS(this.svgns, "rect"); for (let c = 1; c <= this.config.cols; c++) { let g = document.createElementNS(this.svgns, "g"); rowSvg.appendChild(g); @@ -65,12 +64,15 @@ export default class { } } let c = 1 - c += this.applyText(1, 1," !\"#$%&'()*+,-./0123456789:;<=>?"); - c += this.applyText(2, 1,"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"); - c += this.applyText(3, 1,"`abcdefghijklmnopqrstuvwxyz{|}~\x7f"); + this.applyText(1, 1," !\"#$%&'()*+,-./0123456789:;<=>?"); + this.applyText(2, 1,"@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_"); + this.applyText(3, 1,"`abcdefghijklmnopqrstuvwxyz{|}~\x7f\u0123"); } applyCharacter(row, col, char) { + let f = this.font[char] + if (f === undefined) + return 0; for (let c of this.font[char]) { for (let s = 0; s < c.length; s++) { const e = this.container.querySelector(`#geavision__row_${row}_${col}_${s+1}`) @@ -219,7 +221,7 @@ export default class { defs[0x2f] = [ // / '...... .....# ###### ###...', '.....# .####. ...... ......', - '#####.. ...... ...... ......', + '#####. ...... ...... ......', '...... ...... ...... ......', ]