Skip to content

Releases: edemaine/font-webapp

v0.5.1

19 Mar 23:01
Compare
Choose a tag to compare
  • Fix support of glyph.x in new renderLine feature

Full Changelog: v0.5.0...v0.5.1

v0.5.0

19 Mar 21:02
Compare
Choose a tag to compare
  • FontWebappSVG offers a new way to specify fonts: renderLine instead of renderChar
    • For rendering an entire line of text at once, instead of an individual character
    • Can return an array of glyphs, each as would be returned from renderChar (e.g. for special ligature processing or other context-sensitive characters)
    • Can return a single glyph for the entire line
    • Does not support spaceWidth; you need to process spaces yourself

Full Changelog: v0.4.1...v0.5.0

v0.4.1

08 Oct 15:22
Compare
Choose a tag to compare
  • Fix memory leak in downloadFile/downloadSVG, allowing garbage collection via revokeObjectURL

Full Changelog: v0.4.0...v0.4.1

v0.4.0

21 Sep 16:20
Compare
Choose a tag to compare
  • Stop ignoring trailing spaces in FontWebappSVG layout. (Previously their width was ignored.)
  • Omit lineKern after last line in FontWebappSVG layout. This makes for slightly tighter (and arguably better) bounding boxes, but is technically a breaking change.
  • Add blankHeight option for giving height to blank lines, as an alternative to lineKern which adds space between all lines.
  • Documentation: CDN usage, Sudoku font, more use-cases for afterMaybeRender
  • Maintenance: remove generated JavaScript from repo. Use CDN instead.

Full Changelog: v0.3.0...v0.4.0

v0.3.0

09 Apr 13:27
Compare
Choose a tag to compare
  • New beforeRender, afterRender, and afterMaybeRender callbacks in settings, which help enable animations for example
  • New renderedGlyphs attribute lists glyphs from last rendering
  • API change: if you're defining your own FontWebapp subclass, be sure to override doRender instead of render (so that it can be wrapped with before/after callbacks).

Full Changelog: v0.2.1...v0.3.0

v0.2.1

07 Apr 14:38
Compare
Choose a tag to compare
  • Fix default value for size slider in FontWebappHTML. If you are using sizeName to track the size via Furls, you should update. For full effectiveness, requires furls 0.8.1.

Full Changelog: v0.2.0...v0.2.1

v0.2.0

06 Apr 18:25
Compare
Choose a tag to compare

FontWebappHTML:

  • New sizeName option gives the size slider a name attribute, and tells Furls to track the value in the URL.
  • If you use furls 0.8.0+, you get these additional features when specifying sizeName:
    • Size is automatically rounded to the nearest integer when being stored in the URL
    • Size changes are marked as "minor" changes, so the URL will be set via replaceState instead of the usual pushState.
  • Avoid capping charWidth when size slider is invisible (for new hud=0 interfaces)
  • Update character size range when scrollbars (dis)appear, via ResizeObserver (when available)

Full Changelog: v0.1.3...v0.2.0

v0.1.3

01 Nov 21:53
Compare
Choose a tag to compare
  • Add destroy() method to all FontWebapps, which destroys any rendered DOM/SVG. Useful for switching between FontWebapps, for example.

Full Changelog: v0.1.2...v0.1.3

v0.1.2

24 Jul 18:44
Compare
Choose a tag to compare
  • Provide FontWebapp.downloadFile static method (in addition to previous downloadFile instance method), in case you want to download a file without/before creating a FontWebapp instance.

v0.1.1

15 Jul 17:34
Compare
Choose a tag to compare
  • Fix render() method (previously named update()) to work without an argument