korim v2.0.1 Release Notes
Release Date: 2020-12-03 // almost 3 years ago-
No data yet ๐
You can check the official repo
Previous changes from 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