JSFiddle - React, Tailwind, and code Playground
by UlyssesZhan
HTML
<script src="https://pixijs.download/v7.2.4/pixi.min.js"></script>
JavaScript
const style = new PIXI.HTMLTextStyle({
fontFamily: 'HanWangShinSuMedium-Regular',
fontSize: 200,
fill: 0xffffff
});
style.loadFont(
'https://fastly.jsdelivr.net/gh/kaio/wangfonts/TrueType/wt071.ttf',
{ family: 'HanWangShinSuMedium-Regular' }
).then(() => {
const app = new PIXI.Application();
document.body.appendChild(app.view);
const text = new PIXI.HTMLText('engage', style);
text.x = 100;
text.y = 100;
app.stage.addChild(text);
});