Skip to content

Molkit 0.2.0

Released April 3, 2026

New Features

  • Font embedding for SVG exports with optional offline embed checkbox
  • Local font upload (.ttf, .otf, .woff2) via new Upload Font tab in font dialog, stored in IndexedDB
  • Structure settings label font dropdown in Settings > Atoms panel with add/remove buttons
  • Animated SVG export dialog with filename, theme-aware, embed fonts, and background color options
  • Notification system with persistent actionable warnings in status bar and dropup panel
  • Missing font detection on document load with Upload and Substitute actions
  • Font substitute flow for batch-replacing a missing font across all annotations, atoms, and structure settings
  • Changelog UI (Help > What's New) with split-pane version list
  • Animation pin system: static annotations no longer "breathe" during animated SVG transitions
  • Pin mode in match editor lets users toggle which annotations stay static or crossfade during export
  • Auto-detection of static annotations based on content and position matching across states
  • Green ring indicator on match badges shows which annotations will be static in export
  • Manual pin/unpin overrides persist in .mkit files and survive undo/redo

Improvements

  • PNG and clipboard exports auto-embed fonts for correct rendering
  • Export scale options extended to 6x, 8x, and 10x for higher-resolution PNG output
  • Copy-as-image quality increased to 4x minimum (adapts to devicePixelRatio)
  • Google Font @import URLs now include bold and italic weight variants
  • ForeignObject child elements inherit font from parent div (fixes bold/italic in exports)
  • Local fonts auto-check "Embed fonts" in export dialogs (no CDN fallback available)
  • Font embed cache prevents redundant Google Font API fetches on rapid exports
  • Annotation content comparison now uses field-by-field matching with numeric tolerance instead of JSON.stringify
  • .mkit files are now 60% smaller: compact JSON format strips default atom/bond properties and rounds coordinates to 2 decimal places
  • Save dialog includes "Pretty-print JSON" checkbox for human-readable output when needed

Bug Fixes

  • Atom label Google Fonts now detected for export (was checking wrong property name)
  • PNG/clipboard exports render Google Fonts correctly (previously fell back to Arial)
  • var(--font-family) CSS variable resolved to correct value in exports
  • Custom fonts no longer overridden by !important in theme-aware exports
  • State boxes excluded from all SVG exports
  • Textbox width preserved when double-clicking to edit without changes
  • SMILES import atoms normalized with font fields (null instead of undefined)
  • documentFonts no longer grows unbounded (reconciled from scan on each save)
  • Static annotation detection works across states with different canvas positions (dual coordinate check)
  • Duplicated annotation provenanceType no longer causes false content-change detection
  • Arrows with atom attachments excluded from static layer (label dimension changes handled correctly)
  • Stale pins cleaned on state deletion, annotation deletion, and match re-wiring
  • Bold/italic/underline toggle now works with collapsed cursor (no text selection required)
  • Dashed arrow stems with custom colors now visible in SVG exports (CSS stroke rule extended to path and polyline elements)