Search the Community
Showing results for tags 'phaser text'.
-
Hi all, Im working on a responsive game using Phaser 3 and i having issue with the text font size in some devices. Is there any way to auto size the text , so it looks the same in all mobiles devices. Any suggestions / references regarding this subject would be really useful. Thanks in advance.
-
- fontsize
- phaser text
-
(and 1 more)
Tagged with:
-
Hello, I'm having trouble with a webfont, it appears to be cropped on the bottom mostly the "p"s. Also the Phaser example seems to have that problem: http://examples.phaser.io/_site/view_full.html?d=text&f=google+webfonts.js&t=google%20webfonts Is there a work around that? here's my code game.add.text(0, 0, "test text with power", { font: '38px FontdinerSwanky', fill: '#f1f1f1', fontWeight: 'bold', align: 'center', stroke: '#1e1e1e', strokeThickness: 3 });Thanks for your help! Here is a screenshot
-
How I can combine the text properties in a variable for using globally? Thanks you in advance for helping ! var text = game.add.text(game.world.centerX, game.world.centerY + 50, 'Challenge your friends!'); text.font = 'Arial'; // here it is the property of phaser text.fontSize = '12px'; // here it is the property of phaser text.align = 'center'; // here it is the property of phaser text.fontWeight = 'bold'; // here it is the property of phaser
- 5 replies
-
- combine text
- phaser text
-
(and 1 more)
Tagged with: