You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constFontManager=require("font-manager");constntk=require("ntk");constx11=require("x11");functionsetFont(i,ctx){varfnt=FontManager.getAvailableFontsSync()[i];varfont=ctx.loadFont(fnt.path,fnt.weight,10,10);ctx.setFont(font);returnctx;}functiondraw(ctx,wnd){setFont(0,ctx);ctx.fillStyle="blue";ctx.fillRect(0,0,wnd.width,wnd.height);vartxt="Unfortunately, TGAC has stopped working!";ctx.fillText(txt,(wnd.width/2)-(ctx.measureText(txt).width/2),(wnd.height/2)-(ctx.measureText(txt).height/2));}ntk.createClient((err,app)=>{varwindow=app.createWindow({width: 500,height: 300,title: "TGAC"});varctx=window.getContext("2d");window.on("resize",(ev)=>{draw(ctx,window);});window.map();draw(ctx,window);});
This code results in this error:
/home/spaceboyross/Documents/TGAC/node_modules/ntk/lib/glyphset.js:13
X.FreeGlyphSet(obj.id);
^
TypeError: Cannot read property 'id' of undefined
at EventEmitter.<anonymous> (/home/spaceboyross/Documents/TGAC/node_modules/ntk/lib/glyphset.js:13:23)
at emitNone (events.js:86:13)
at EventEmitter.emit (events.js:188:7)
at callback (/home/spaceboyross/Documents/TGAC/node_modules/weak/lib/weak.js:108:11)
The text was updated successfully, but these errors were encountered:
This code results in this error:
The text was updated successfully, but these errors were encountered: