1 parent 00e17bd commit 949218bCopy full SHA for 949218b
1 file changed
src/JSTools.ts
@@ -326,7 +326,7 @@ class Label extends Control {
326
this.color = "white";
327
this.outlineColor = transparent;
328
this.textHeight = 30;
329
- this.fontFamily = "Tahoma";
+ this.fontFamily = "Arial";
330
this.xAlign = xAlign; //Horizontal Aligning
331
this.yAlign = "middle"; //Vertical Aligning
332
}
@@ -342,7 +342,7 @@ class Label extends Control {
342
ctx.textBaseline = this.yAlign;
343
ctx.strokeStyle = this.outlineColor;
344
ctx.lineWidth = this.outlineWidth;
345
- ctx.font = "bold " + this.textHeight + "px " + this.fontFamily;
+ ctx.font = "bold " + this.textHeight + "px " + this.fontFamily + ", Arial, sans-serif";
346
347
348
/**
0 commit comments