Releases: edemaine/font-webapp
Releases · edemaine/font-webapp
Release list
v0.5.1
v0.5.0
FontWebappSVGoffers a new way to specify fonts:renderLineinstead 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
FontWebappSVGlayout. (Previously their width was ignored.) - Omit
lineKernafter last line inFontWebappSVGlayout. This makes for slightly tighter (and arguably better) bounding boxes, but is technically a breaking change. - Add
blankHeightoption for giving height to blank lines, as an alternative tolineKernwhich 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, andafterMaybeRendercallbacks in settings, which help enable animations for example - New
renderedGlyphsattribute lists glyphs from last rendering - API change: if you're defining your own
FontWebappsubclass, be sure to overridedoRenderinstead 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
sizeNameto 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
sizeNameoption gives the size slider anameattribute, 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
replaceStateinstead of the usualpushState.
- Avoid capping
charWidthwhen size slider is invisible (for newhud=0interfaces) - 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 allFontWebapps, which destroys any rendered DOM/SVG. Useful for switching betweenFontWebapps, for example.
Full Changelog: v0.1.2...v0.1.3