korim v2.0.1 Release Notes

Release Date: 2020-12-03 // over 3 years ago

Previous changes from v2.0.0

  • v1.12.29...v2.0.0

    โž• Additions:

    • RGBA now is a Paint too and replaces ColorPaint
    • โž• Added MutableAtlas and AtlasPacker
    • BmpSlice is now Resourceable from korio
    • โž• Added BitmapSlice.withName
    • Implemented DistanceBitmap via Dead Reckoning Algorithm
    • โž• Added extension Bitmap.distanceMap
    • ๐Ÿ‘Œ Support creating an empty NativeImage specifying premultiplied
    • โž• Added BitmapEffect and Bitmap32.applyEffect to building a new Bitmap applying blur, drop shadow and border at runtime
    • โž• Added Bitmap32.blur, Bitmap32.border
    • โž• Added ColorTransform full name aliases
    • Extra constructors, methods and properties for RGBAf
    • ๐Ÿ‘Œ Support constructing BitmapFont from other Font (TTF or other BitmapFont) specifying a BitmapEffect. Added Font.toBitmapFont
    • ๐Ÿ‘Œ Support reading a BitmapFont with mipmaps
    • ๐Ÿ‘Œ Support writing generated BitmapFont into a VfsFile: BitmapFont.writeToFile
    • Font is now Resourceable
    • ๐Ÿ‘ Font.renderGlyphToBitmap now support applying BitmapEffect
    • โž• Added VfsFile.readFont supporting both: Bitmap and TTF font reading
    • Implemented SystemFont by constructing a catalog of TTF fonts in the native font directories for each operating system, fallback on JS with an embedded TTF font
    • โž• Added TextAlignment combining VerticalAlign and HorizontalAlign, and Context2d includes the alignment property to set both alignments at once
    • โž• Added BitmapVector: a bitmap that includes a drawable and computes lazily
    • Context2d scale, rotate, translate variants with blocks for changing the transform locally
    • ๐Ÿ‘ Context2d.drawShape now supports any Drawable in addition to Shape
    • โž• Added BmpSlice.writeTo

    ๐Ÿ›  Fixes:

    • ๐Ÿ‘ Better BitmapFont generation
    • ๐Ÿ›  Fixed some TTF vector glyphs
    • ๐Ÿ›  Fixed some TTF metrics
    • ๐Ÿ›  Fixed vector font rendering in some cases
    • ๐Ÿ›  Fixes BitmapFont rendering positions

    Optimizations:

    • โšก๏ธ Optimized Bitmap8.copyUnchecked
    • โšก๏ธ Optimized BitmapIndexed operations
    • โšก๏ธ Optimized RGBA.hexString and RGBA.hexStringNoAlpha
    • โšก๏ธ Optimized TtfFont reading by using FastByteArrayInputStream

    ๐Ÿ’ฅ Breaking changes:

    • ๐Ÿ“ฆ Moved vector.paint package to paint
    • ๐Ÿ“‡ Renamed Bitmap32.premultiplyInplace to premultiplyInplaceIfRequired
    • Atlas2 unified with Atlas
    • โœ‚ Removed deprecated methods
    • โœ‚ Removed unused FontOrigin class
    • ColorTransform.colorAdd is now ColorAdd instead of Int
    • Context2d.StrokeInfo -> StrokeInfo