Jump to content

Search the Community

Showing results for tags 'text metrics font'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi, I was wondering if there is a Pixi way to get the text metrics for a string before having to render it. It looks like one has to do updateText() to get the width to be correct but doesn't this render? Also, I looked at the PIXI.Text.prototype.updateText() method in the v2.0 pixi and it does the call to the canvas measureText().width to get the width after it sets the font into the context but before the styles are applied. Is this ok or should the measureText() call come after the styles are applied to the context. Also, I see this.context.font set twice, once at the top of the method and then later after the test for isCocoonJS. Is this correct? Thanks, Kelvin
×
×
  • Create New...