title: Can I set the font width of a font in Phaser 3?
body: <p>I am using <a href="https://phaser.io/" rel="nofollow noreferrer">Phaser 3</a> to develop a browser game in a canvas with WebGL. I set the width of the canvas text from a <strong>custom loaded</strong> font, but I cannot set it's style (e.g., italic, semibold).</p>
  <p>Here is the code that I use to create text:</p>
  <pre class="lang-js prettyprint-override"><code>this.add.text(100, 600, 'Test Text', {
    font: '50px Poppins'
  })
  this.add.text(100, 600, 'Test Text', {
    font: '50px Poppins semibold'
  })
  </code></pre>
  <p>Here is the output:</p>
  <p><a href="https://i.stack.imgur.com/x6XES.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x6XES.png" alt="enter image description here" /></a></p>
  <p>The second image is using the default font, not Poppins. It seems that as soon as I try to set italic or any other style it will fallback to the default font.</p>
  <p>I tried to set it with the properties as well (no luck). Has anyone faced the same issue (styling custom fonts), and how to properly load the styled custom fonts?</p>