From 9ef7da662ee0e98654dfec534cc96d3044e29b84 Mon Sep 17 00:00:00 2001 From: Roman Chaley Date: Sun, 4 Aug 2024 16:08:07 +0200 Subject: [PATCH] Added example for 6880 --- public/src/bugs/6880 text with stroke.js | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 public/src/bugs/6880 text with stroke.js diff --git a/public/src/bugs/6880 text with stroke.js b/public/src/bugs/6880 text with stroke.js new file mode 100644 index 000000000..44abbd3b2 --- /dev/null +++ b/public/src/bugs/6880 text with stroke.js @@ -0,0 +1,25 @@ +class MainScene extends Phaser.Scene { + constructor() { + super({ key: 'MainScene' }); + } + + create() { + this.add + .text(100, 300, 'Text with stroke', { + fontFamily: 'Arial', + fontSize: '64px', + color: '#ffffff', + stroke: '#000000', + strokeThickness: 7, + }) + .setLetterSpacing(10); + } +} + +const game = new Phaser.Game({ + type: Phaser.AUTO, + width: 800, + height: 600, + backgroundColor: '#898989', + scene: MainScene, +});