mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-25 02:57:01 -06:00
Two threads resolving a family nobody had loaded yet raced. The one that lost the race saw add_font add nothing and fell back to another face, and a lookup made while a family was being added saw only part of it (Arial Bold Italic loads first, so "Regular" came back bold italic). The same text was then laid out in different fonts depending on timing, which made clicks_in_flipped_shapes_hit_the_text_where_it_is_drawn flaky when the theme font isn't bundled. Loading installed fonts now happens under one lock and rechecks once it holds it, and a family's faces are added in one step. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>