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

excaliburjs / Excalibur / 7939446398 / 1
89%
main: 89%

Build:
DEFAULT BRANCH: main
Ran 17 Feb 2024 04:59AM UTC
Files 209
Run time 4s
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

17 Feb 2024 04:56AM UTC coverage: 91.154% (+0.01%) from 91.14%
7939446398.1

push

github

web-flow
feat: ex.FontSource resource type (#2934)

## Changes:

- Added `ex.FontSource` resource type
  ```typescript
  const fontSource = new ex.FontSource('/my-font.ttf', 'My Font')
  loader.addResource(fontSource)

  game.start(loader).then(() => {
    const font = fontSource.toFont() // returns ex.Font
  })
  ```

  Font options can be defined either at the source or at the `toFont()` call. If defined in both, `toFont(options)` will
  override the options in the `FontSource`.

  ```typescript
  const fontSource = new ex.FontSource('/my-font.ttf', 'My Font', { 
    filtering: ex.ImageFiltering.Pixel,
    size: 16, // set a default size
  })
  const font = fontSource.toFont({
    // override just the size
    size: 20,
  })
  ```
- adds `"dom.iterable"` to  `lib` in tsconfig.json as it was needed to get the correct types for `document.fonts`

5244 of 6613 branches covered (0.0%)

11582 of 12706 relevant lines covered (91.15%)

23790.11 hits per line

Source Files on job 7939446398.1
  • Tree
  • List 0
  • Changed 28
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 7939446398
  • a981c5dc on github
  • Prev Job for on main (#7939382290.1)
  • Next Job for on main (#7939487002.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc