Hook up attributes to new texture atlas

This commit is contained in:
Daniel Imms
2022-10-02 13:57:35 -07:00
parent 590a8219e3
commit dbef850039
3 changed files with 21 additions and 352 deletions
@@ -336,6 +336,8 @@ export class TextureAtlas implements ITextureAtlas {
private _drawToCache(codeOrChars: number | string, bg: number, fg: number, ext: number): IRasterizedGlyph {
const chars = typeof codeOrChars === 'number' ? String.fromCharCode(codeOrChars) : codeOrChars;
console.log(`draw to cache "${chars}"`, bg, fg, ext);
this.hasCanvasChanged = true;
// Allow 1 cell width per character, with a minimum of 2 (CJK), plus some padding. This is used