Skip to content

Commit 8904658

Browse files
committed
note loadImage & FontLibrary updates
1 parent b1d8b77 commit 8904658

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,27 @@
22

33
## 🥚 ⟩ [Unreleased]
44

5+
### New Features
6+
- Enhacements to the shared **FontLibrary** object:
7+
- Added a [`reset()`][FontLibrary.reset] method to FontLibrary which uninstalls any fonts that had been dynamically installed via `FontLibrary.use()`
8+
- The [`use()`][FontLibrary.use] method now checks for previously installed fonts with the same family name (or alias) and will replace them with the newly added font
9+
510
### Bugfixes
611

712
- Calling `clip` with an empty path (or one that does not intersect the current clipping mask) will now prevent drawing altogether
813
- Transformation (`translate`, `rotate`, etc.) and line-drawing methods (`moveTo`, `lineTo`, `ellipse`, etc.) are now silently ignored if called with `NaN`, `Infinity`, or non-**Number** values in the arguments rather than throwing an error
914
- applies to both the Context and Path2D versions of the drawing methods
1015
- a **TypeError** is thrown only if the number of arguments is too low (mirroring browser behavior)
1116
- [`conicCurveTo()`][conicCurveTo] now correctly reflects the canvas's transform state
17+
- The browser-based version of [`loadImage()`][loadImage] now returns a **Promise** that correctly resolves to an **Image** object
18+
19+
### Misc. Improvements
20+
- Upgraded Skia to milestone 101
1221

1322
[conicCurveTo]: https://github.com/samizdatco/skia-canvas#coniccurvetocpx-cpy-x-y-weight
23+
[FontLibrary.reset]: https://github.com/samizdatco/skia-canvas#reset
24+
[FontLibrary.use]: https://github.com/samizdatco/skia-canvas#usefamilyname-fontpaths
25+
[loadImage]: https://github.com/samizdatco/skia-canvas/#loadimage
1426

1527
## 📦 ⟩ [v0.9.29] ⟩ Feb 7, 2022
1628

0 commit comments

Comments
 (0)