text: import WebFontLoaderPlugin from '../../plugins/webfontloader-plugin.js';
  
  class Demo extends Phaser.Scene {
      constructor() {
          super({
              key: 'examples'
          })
      }
  
      preload() {
          var config = {
              google: {
                  families: ['Bangers']
              }
          };
          this.load.rexWebFont(config);
          this.load.on('webfontactive', function (fileObj, familyName) {
              console.log('font-active: ' + familyName)
          });
          this.load.on('webfontinactive', function (fileObj, familyName) {
              console.log('font-inactive: ' + familyName)
          })
      }
  
      create() {
          this.add.text(100, 100, 'Hello ', {
              fontFamily: 'Bangers',
              fontSize: '64px'
          })
      }
  
      update() {}
  }
  
  var config = {
      type: Phaser.AUTO,
      parent: 'phaser-example',
      width: 800,
      height: 600,
      scale: {
          mode: Phaser.Scale.FIT,
          autoCenter: Phaser.Scale.CENTER_BOTH,
      },
      scene: Demo,
      plugins: {
          global: [{
              key: 'WebFontLoader',
              plugin: WebFontLoaderPlugin,
              start: true
          }]
      }
  };
  
  var game = new Phaser.Game(config);