JSFiddle - React, Tailwind, and code Playground

by UlyssesZhan

HTML

<script src="https://pixijs.download/v7.2.4/pixi.min.js"></script>

JavaScript

PIXI.Assets.load({
	src: 'https://fastly.jsdelivr.net/gh/kaio/wangfonts/TrueType/wt071.ttf',
	loadParser: 'loadWebFont',
	data: { family: 'HanWangShinSuMedium-Regular' }
}).then(font => {

	const app = new PIXI.Application({ autoStart: false });
	document.body.appendChild(app.view);

	const text = new PIXI.Text('engage', {
		fontSize: 200,
		fill: 0xffffff,
		fontFamily: 'HanWangShinSuMedium-Regular'
	});
	text.x = 100;
	text.y = 100;
	app.stage.addChild(text);

	app.render();
	
});