BitmapText using BitmapFont.from() doesn't include punctuation
See original GitHub issueThanks for all your hard work on this wonderful library and all the recent improvements to bitmap text.
Could be user error, but I can’t seem to get punctuation (have tried -,.&) to render when using a font declared with PIXI.BitmapFont.from(). I’ve set the chars
value to the exact string used, a split array of that string and PIXI.BitmapFont.ASCII
to no avail. Though I suspect the issue doesn’t lie with chars
given that punctuation is rendering here.
I was able to render punctuation with preloaded bitmap fonts, so I think the bug may be limited to the PIXI.BitmapFont.from() method.
In addition, wanted to flag that 6.0.0 seems to break bitmap fonts entirely (at least with the js fiddle example linked here – I’m using 5.3.7 in the interim).
pixi.js
version: 5.3.7- Browser & Version: Chrome
- OS & Version: _e.g. macOS Catalina
- Running Example: https://jsfiddle.net/d8j3o5sh/
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
BitmapText using BitmapFont.from() doesn't include punctuation
I was able to render punctuation with preloaded bitmap fonts, so I think the bug may be limited to the PIXI.BitmapFont.from() method. In ......
Read more >Phaser 3 API Documentation - Class: BitmapText
BitmapText objects work by taking a texture file and an XML or JSON file that describes the font structure. During rendering for each...
Read more >Using bitmap fonts - ct.js Documentation
Unless you need a font to display one word without spaces, you do need to check "Digits and punctuation" — it includes spaces,...
Read more >new PIXI.BitmapText (text, style) - PixiJS
A BitmapText object will create a line or multiple lines of text using bitmap font. The primary advantage of this class over Text...
Read more >How to use the BitmapFontTextRenderer component (Starling ...
The BitmapFontTextRenderer class renders text using bitmap fonts. BitmapFontTextRenderer is one of many different text renderers supported by Feathers. Since no ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ahhhhhh, thank you! Appreciate the quick response.
Oh I see what it is. Fixed here: https://jsfiddle.net/bigtimebuddy/ah6pvm2o/
The problem is
chars
is part of the options, not style. http://pixijs.download/dev/docs/PIXI.BitmapFont.html#from