Skip to content

Releases: cool-japan/oxitext

OxiText 0.1.2 Release

11 Jun 00:18

Choose a tag to compare

[0.1.2] - 2026-06-10

Added

  • oxitext-raster: full raw CBDT bitmap format supportextract_cbdt_bitmap and render_cbdt_glyph now decode all eight raw RasterImageFormat variants: BitmapMono, BitmapMonoPacked, BitmapGray2, BitmapGray2Packed, BitmapGray4, BitmapGray4Packed, BitmapGray8, and BitmapPremulBgra32. Each format is decoded by a dedicated unpacker function (unpack_mono, unpack_gray2, unpack_gray4, unpack_gray8, unpack_bgra32).
  • oxitext-raster: unpack_* public helper functions — exported for downstream use when raw CBDT pixel data needs to be decoded outside the standard extraction path.
  • pango-sys workspace dependencypango-sys = "0.22.0" added to workspace dependencies.

Changed

  • oxitext-raster: extract_cbdt_bitmap and render_cbdt_glyph API — both functions now always return Some for any supported bitmap format rather than falling back to None for raw (non-PNG) CBDT entries.

Full Changelog: v0.1.1...v0.1.2

OxiText 0.1.1 Release

04 Jun 14:07

Choose a tag to compare

[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

OxiText 0.1.0 Release

01 Jun 17:40

Choose a tag to compare