mirror of
https://github.com/storytold/deckcraft.git
synced 2026-11-20 09:04:51 +00:00
The renderer sets the text of a shape inside a group whose child coordinates scale it at the shape's size on the slide, so font sizes and insets stay in points (Renderer::text_space). place() set the same text in the group's child units and then scaled it with the group, so placed text broke its lines differently and lay elsewhere than the drawn text. The PDF text layer and the text hyperlink areas read placed text. text_space's rule moves into placed.rs as one function that the renderer and place() both call. Table cell text is unchanged: tables draw their text under the group's scale, and place() already did the same. Test: text_in_a_scaled_group_is_placed_as_drawn puts one line in groups whose child space is 1, 1600, 4 and 1/4 times smaller than the group and checks each glyph's id, position on the slide and drawn size against the same line on its own. ROADMAP.md gets a status line, a progress-log row and a revision-history row.