Skip to content

OxiText 0.1.1 Release

Choose a tag to compare

@cool-japan cool-japan released this 04 Jun 14:07
· 1 commit to master since this release

[0.1.1] - 2026-06-04

Added

  • oxitext-icu: fonts feature + LocaleFontSelector — new font_select module (behind the fonts Cargo feature) provides LocaleFontSelector, a locale-aware font family selector backed by an oxifont-db FontDatabase. Exposes family_for_locale, locale_name_for_locale, query_family, families_for_locale, and batch_resolve for BCP-47 locale → font family resolution with CJK/RTL-aware CSS-Level-4 generic mapping.
  • oxitext-shape: native-fallback feature + native_fallback module — new feature gate re-exports oxifont_adapter_native::shaper_bridge for OS-native font fallback (CoreText on macOS, DirectWrite on Windows, filesystem scan on Linux). Exposes collect_fallback_fonts_for_text, collect_fonts_for_text, find_native_font_for_codepoint, load_best_native_font_for_text, and load_native_font_for_codepoint_with_index.
  • oxitext: font-subset feature + pdf_subset module — new module with TextFontSubsetter, a streaming accumulator for on-the-fly font subsetting during PDF composition. Wraps oxifont_subset::pdf_subset::PdfFontSubsetter with ergonomic feed_text, feed_char, feed_gid, feed_gids, merge, finalize, finalize_into_result, and reset methods; includes PDF and web presets (for_pdf, for_web). Re-exports PdfSubsetResult, SubsetError, SubsetOptions, and SubsetStats.
  • oxifont-bundled dev-dependencyoxifont-bundled (with bundled-noto feature) added as a workspace-level dep and as a dev-dependency in oxitext, oxitext-raster, enabling all integration tests to use the statically embedded Noto Sans Regular.
  • oxifont-subset and oxifont-adapter-native workspace depsoxifont-subset and oxifont-adapter-native added to workspace dependencies to back the new font-subset and native-fallback features.

Changed

  • Test determinism: system-font panics replaced with oxifont-bundled fallback — all integration and bench tests in oxitext, oxitext-raster, and oxitext-shape previously panicked when system fonts were absent. They now fall back to oxifont_bundled::NOTO_SANS_REGULAR, ensuring reproducible CI results without hardcoded absolute font paths.
  • oxitext-shape: system-fonts dep alignmentoxifont optional dep entry reformatted alongside new oxifont-adapter-native dep for consistency.

Full Changelog: v0.1.0...v0.1.1