Quantcast
Channel: Pixi.js Latest Topics
Viewing all articles
Browse latest Browse all 3980

Multi-Style text

$
0
0

Allo!

 

For a specific project, I needed to create a lot of multi-style text. And to be honest, it's just painful to do it manually every time. So I decided to create an object to do it for me, because I don't want to do it manually anymore :) This one calculates the position of each group of text automatically and will save me a lot of dev time now.

 

I called it "MultiStyleText" and the source code is available on github if you want: https://github.com/tleunen/pixi-multistyle-text

 

I'm pretty sure there are a few bugs in there, especially with styles using different font-size. But this is a start :)

I've released it as 0.1.0 because I'm not sure yet of the way to create it, with the 2 "styles" object. Feel free to suggest improvements on that!

 

I put an example using the same that Mat created for Pixi.Text and here is the result:

lQZeHZ1.jpg

 

Let me know what you think.


Viewing all articles
Browse latest Browse all 3980


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>