Jump to content

Pixi js font development


TheOldCounty
 Share

Recommended Posts

I am working on a game - and the design requires the font to use "italic light" and also have an outline gradient blue and transparent.

 

http://jsfiddle.net/N476t/10/

 

I've recreated this example in jsfiddle with arial.

 

I'm adding in a score at the end of this pixijs game. I have the standard parameters here - but the design calls for an outerglow around the letters is there a way to do this?http://www.goodboydigital.com/pixijs/docs/classes/Text.html

this.txtRankingOverall = new PIXI.Text("" + GameControl.score, {
font: "120px FSJoeyLtIt",
fill: "#ffffff",
align: "center"
});

HAjfq.jpg

I'm also having issues trying to match the font - it needs to be italic light

this.txtRankingToday = new PIXI.Text("46", {
font: "italic 120px FSJoeyLtIt",
fill: "#ffffff",
align: "center",
style: "light"
});
Link to comment
Share on other sites

Hello,

 

You might want to try using a bitmap font:

 

http://www.goodboydigital.com/text-updates/

http://www.goodboydigital.com/pixijs/docs/classes/BitmapText.html

 

It's a bit more work but bitmap fonts give you very precise control over the visual design of the font.

 

There might be another way to do what you looking for without bitmap fonts that I don't know about.

If there is, hopefully someone out there reading this can explain it to us :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...