mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-03 08:50:02 -06:00
The Find box and the Navigation pane's Results list draw the typed query and document excerpts around each match with the interface faces (Inter, Source Sans 3), which cover Latin plus the embedded CJK faces — nothing else. Georgian (and Armenian, Thai, …) text typed into the search box, or found in the document and shown in a result's context snippet, was drawn as boxes. Added ensure_find_fonts(), following the exact pattern already used for the window caption (#565) and comment balloons/the Comments pane: scan the query and the visible results' surrounding text for characters the interface faces can't draw, and borrow a document font's fallback face for them. Cached by (query, result count) so it only rescans when either changes. Verified live: built the app, inserted Georgian text, searched for a Georgian word, and confirmed both the search box (typed query) and the Results list (match context) now render the glyphs instead of boxes — matching the issue's screenshot, now fixed. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>