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

excaliburjs / Excalibur / 7939446408
89%

Build:
DEFAULT BRANCH: main
Ran 17 Feb 2024 04:59AM UTC
Jobs 1
Files 209
Run time 13s
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.146% (+0.006%) from 91.14%
7939446408

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`

5243 of 6613 branches covered (79.28%)

11581 of 12706 relevant lines covered (91.15%)

23803.05 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7939446408.1 17 Feb 2024 04:59AM UTC 0
91.15
GitHub Action Run
Source Files on build 7939446408
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #7939446408
  • a981c5dc on github
  • Prev Build on main (#7939382290)
  • Next Build on main (#7939446398)
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