Skip to content

Commit 949218b

Browse files
committed
fix font
1 parent 00e17bd commit 949218b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/JSTools.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ class Label extends Control {
326326
this.color = "white";
327327
this.outlineColor = transparent;
328328
this.textHeight = 30;
329-
this.fontFamily = "Tahoma";
329+
this.fontFamily = "Arial";
330330
this.xAlign = xAlign; //Horizontal Aligning
331331
this.yAlign = "middle"; //Vertical Aligning
332332
}
@@ -342,7 +342,7 @@ class Label extends Control {
342342
ctx.textBaseline = this.yAlign;
343343
ctx.strokeStyle = this.outlineColor;
344344
ctx.lineWidth = this.outlineWidth;
345-
ctx.font = "bold " + this.textHeight + "px " + this.fontFamily;
345+
ctx.font = "bold " + this.textHeight + "px " + this.fontFamily + ", Arial, sans-serif";
346346
}
347347
}
348348
/**

0 commit comments

Comments
 (0)