Releases: edemaine/font-webapp
Releases · edemaine/font-webapp
v0.5.1
v0.5.0
FontWebappSVG
offers a new way to specify fonts:renderLine
instead ofrenderChar
- 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
- Fix memory leak in
downloadFile
/downloadSVG
, allowing garbage collection viarevokeObjectURL
Full Changelog: v0.4.0...v0.4.1
v0.4.0
- Stop ignoring trailing spaces in
FontWebappSVG
layout. (Previously their width was ignored.) - Omit
lineKern
after last line inFontWebappSVG
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 tolineKern
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
- New
beforeRender
,afterRender
, andafterMaybeRender
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 overridedoRender
instead ofrender
(so that it can be wrapped with before/after callbacks).
Full Changelog: v0.2.1...v0.3.0
v0.2.1
- 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
FontWebappHTML:
- New
sizeName
option gives the size slider aname
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 usualpushState
.
- Avoid capping
charWidth
when size slider is invisible (for newhud=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
- Add
destroy()
method to allFontWebapp
s, which destroys any rendered DOM/SVG. Useful for switching betweenFontWebapp
s, for example.
Full Changelog: v0.1.2...v0.1.3