Skip to content

Commit

Permalink
fix v8.0 bitmaptext example (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
naramdash authored Mar 14, 2024
1 parent 9281875 commit 14dbe10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/examples/v8.0.0/text/bitmapText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Application, Assets, Text } from 'pixi.js';
import { Application, Assets, BitmapText } from 'pixi.js';

(async () =>
{
Expand All @@ -14,14 +14,13 @@ import { Application, Assets, Text } from 'pixi.js';
// Load bitmap font
await Assets.load('https://pixijs.com/assets/bitmap-font/desyrel.xml');

const bitmapFontText = new Text({
const bitmapFontText = new BitmapText({
text: 'bitmap fonts are supported!\nWoo yay!',
style: {
fontFamily: 'Desyrel',
fontSize: 55,
align: 'left',
},
renderMode: 'bitmap',
});

bitmapFontText.x = 50;
Expand Down

0 comments on commit 14dbe10

Please sign in to comment.