• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

excaliburjs / Excalibur / 1100
84%
main: 89%

Build:
Build:
LAST BUILD BRANCH: dependabot/npm_and_yarn/site/postcss-8.5.23
DEFAULT BRANCH: main
Ran 05 Nov 2016 07:09PM UTC
Jobs 1
Files 1
Run time 0s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1100

push

travis-ci

eonarheim
[#679] Fix Label#getTextWidth returns incorrect result (#680)

<!-- If you're closing an issue with this pull request, or contributing a significant change, please include your changes in the appropriate section of CHANGELOG.md as outlined in CONTRIBUTING.md-->

Closes #679 

## Changes:

- fix `Label#getTextWidth` so it returns proper number
- introduce protected readonly `_fontString` property, which properly combines fontFamily with fontSize and is used in `_fontDraw` and `getTextWidth`.

Basically, this changes the method so it takes into account not only fontFamily, but fontSize too.

7201 of 9452 relevant lines covered (76.18%)

113.74 hits per line

Coverage Regressions

Lines Coverage ∆ File
232
100.0
src/spec/TestsSpec.js
Jobs
ID Job ID Ran Files Coverage
1 1100.1 05 Nov 2016 07:09PM UTC 0
76.18
Travis Job 1100.1
Source Files on build 1100
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1100
  • 274610db on github
  • Prev Build on master (#1099)
  • Next Build on master (#1108)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc