woff2_flutter 0.2.0 copy "woff2_flutter: ^0.2.0" to clipboard
woff2_flutter: ^0.2.0 copied to clipboard

Allows parsing and loading WOFF2 fonts directly in Flutter using FFI.

0.2.0 #

  • Fixed mistakenly calculating WOFF2 uncompressed size for some non-WOFF2 fonts.

    • The issue was causing absurdly large allocations before the decompression would fail.
    • Adds a check for the WOFF2 Header signature.
    • Now, non-WOFF2 fonts fill never get passed to the WOFF2 native library.
  • Reduced unnecessary memory copies by utilizing Dart native finalizers.

    • Currently, this experimental change only applies to two use cases: decompressing a WOFF2 font before any processing, and compressing subset results to WOFF2.
  • Migrated from package:ffi allocators to package:ffi_leak_tracker adaptive allocators.

    • This integration will help track potential native memory leaks.
  • Bumped minimum SDK versions to Dart 3.13 and Flutter 3.47.

  • Bumped dependency constraints.

    • woff2_ffi to ^0.2.0.

0.1.0 #

  • Initial version
0
likes
150
points
105
downloads

Documentation

API reference

Publisher

verified publisherdeminearchiver.qzz.io

Weekly Downloads

Allows parsing and loading WOFF2 fonts directly in Flutter using FFI.

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection, ffi, ffi_leak_tracker, flutter, logging, woff2_ffi

More

Packages that depend on woff2_flutter