Browse Source

Fix miter issue with text outline

David Catuhe 4 years ago
parent
commit
d608d96804
1 changed files with 2 additions and 0 deletions
  1. 2 0
      gui/src/2D/controls/textBlock.ts

+ 2 - 0
gui/src/2D/controls/textBlock.ts

@@ -384,6 +384,8 @@ export class TextBlock extends Control {
         if (this.outlineWidth) {
             context.lineWidth = this.outlineWidth;
             context.strokeStyle = this.outlineColor;
+            context.lineJoin = 'miter';
+            context.miterLimit = 2; 
         }
     }