Skip to content

v0.3.0

Choose a tag to compare

@osolmaz osolmaz released this 01 Dec 17:23

Compatifont 0.2.0 & East Asian Stand-In Support

  • Compatifont 0.2.0 (f-office-docx, f-office-fonts, @f-office/docs): Upgrades compatifont to 0.2.0 (adding all 10 Wave 1 East Asian stand-in families to compatifont::known()) and updates DEFAULT_COMPATIFONT_CDN to https://cdn.compatifont.com/v0.2.0 (23 families, 60 faces).
  • Verified metric stand-ins as Exact: Classifies verified Compatifont metric stand-ins (Basis::Check, Level::Widths, matching Group::Line metrics) as SubstituteLayout::Metrics / FontMatchKind::MetricStandIn under FidelityLevel::Exact, matches legacy Compatifont names against typographic family/style entries (e.g. Aptos Display, Arial Narrow), and differentiates approximate fidelity banner copy for unverified widths, version mismatches, and unrelated fallbacks.
  • Stand-in synthetic styles & em-grid precision: Computes synthetic bold and italic on stand-in faces (FontChoice::draw_stand_in) and preserves target units_per_em rounding granularity (256 / 1024 upem) for East Asian single-line room, synthetic-bold advance widening, and whole-line checks.

Viewer & Web Packages (@f-office/docs, @f-office/docs-react)

  • Monotonic load progress (OpenProgressTracker): Normalizes OpenProgress.fraction into a single monotonic 0..1 sequence across engine, scan, fonts, layout, and render stages for both cold and warm loads, buffering pre-open engine progress while idle.
  • Document download: Adds File → Download (.docx) in @f-office/docs-react with the OOXML DOCX MIME type.

DOCX Layout & Rendering Improvements

  • 3-D clustered column charts: Adds 3-D clustered column chart rendering in f-office-docx and f-office-effects.
  • Borders & tables: Refines multi-line page border corner joining, nesting, and white gap painting; cuts table borders at page foot and split-row junctions; and places spacing-zero cell-box borders by their inner edges.
  • Text, bidi, fields, and metafiles: Adds pixel-depth single underlines for East Asian faces, device-width tab leader stepping and stop placement, FILENAME field resolution in headers/footers, run splitting after leading unmapped symbols with non-default East Asian fonts, w:rtl/w:cs gating for complex-script slots/sizes, mixed-run RTL ordering and bracket mirroring, and scaled 0.14 pt cosmetic/sub-hairline EMF/WMF pens.