Home

Published

- 1 min read

phaserjs font font-feature

img of phaserjs font font-feature

The solution for this is noted below

phaserjs font font-feature

Solution

   /* If you set the font-feature-settings in the @font-face,
  	 You can just use the font-family name in Phaser and it will work
  	 as expected */

@font-face{
  font-family: 'MyFont';
  src: url('myfont.woff) format('woff');
  font-weight: bold;
  font-feature-settings: 'mf12';
}

Try other methods by searching on the site. That is if this doesn’t work