[0.1.2] - 2026-06-10
Added
oxifont-bundled:compressedfeature — build-time zlib compression viabuild.rs—build.rsnow reads every.ttffile fromfonts/, compresses them withoxiarc-deflate::zlib_compress(level 6), and writes<name>.ttf.zfiles to$OUT_DIR; when thecompressedfeature is enabled,BundledFontembeds the zlib bytes viainclude_bytes!(concat!(env!("OUT_DIR"), "..."))and decompresses on first parse, reducing embedded binary size.oxifont-bundled:BundledFont::decompressed_data()works correctly with actual compressed data — removed the forward-compatibility SFNT-magic bypass indecompress_font; the function now directly callsoxiarc_deflate::zlib_decompress; the magic bypass was designed for a future build script that has now landed.oxifont-webfont: WOFF2 glyf/loca passthrough support — enhanced glyf/loca table handling with improved passthrough logic for non-transformed tables, and improved reconstruction logic for transformed glyf tables.oxifont-bundled: additional compressed feature tests — addedcompressed_testsmodule withcompressed_data_is_not_raw_sfntand round-trip validity tests; updatedsans_regular_ttf_magic,sans_bold_ttf_magic,serif_regular_ttf_magic, andall_fonts_have_valid_ttf_magicto usedecompressed_data()so they work under both compressed and non-compressed builds.
Changed
oxifont-bundleddecompressed_data_length_matches_raw_datatest updated to correctly assert that stored bytes are smaller than decompressed bytes under thecompressedfeature, and equal lengths without the feature.oxiarc-deflatebumped from0.3.2to0.3.3.oxiarc-brotlibumped from0.3.2to0.3.3.
Full Changelog: v0.1.1...v0.1.2