quark

Members
  • Content Count

    2
  • Joined

  • Last visited

  • Days Won

    1

quark last won the day on July 30

quark had the most liked content!

About quark

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for your reply and the explanation. I misunderstood it's behaviour! I already had it working with regular web fonts and somehow I expected the same behaviour to the already created BitmapFonts 😕 Just a simple note, I made a simple trick so that i don't need to create a bitmapFont for each text color (that share same font), every bitmapFont from an web font is generated with fill white, and then it's applied tint instead of fill to the bitmapText directly to change text color.
  2. Good morning, I created a font using bmGlyph and exported as 'Sparrow/Starling' to use with pixi. Using the font directly on the bitmapText style works correctly: // Load font app.loader.add('dafont', 'dafont.fnt').load(startup); function startup() { const text = new PIXI.BitmapText('ABCDEFGHIJLMNOPQRSTUVWXYZ\nabcdefghijlmnopqrstuvwxyz\n0123456789', { fontName: 'dafont' }); app.stage.addChild(text); } Trying to create a bitmapFont with a custom style it just doesnt' apply the intended font: // Load font app.loader.add('dafont', 'dafont.fnt').load(startup); function startup() { PIXI.BitmapFont.from('bestfont', {fontName: 'dafont', size: 48}); const text = new PIXI.BitmapText('ABCDEFGHIJLMNOPQRSTUVWXYZ\nabcdefghijlmnopqrstuvwxyz\n0123456789', { fontName: 'bestfont' }); app.stage.addChild(text); } Can't actually understand if I'm doing something wrong or if it's a misbehaviour. Thanks in advance