mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-24 10:37:03 -06:00
PowerPoint for Mac lays out a table's text in the master's other-text style (p:otherStyle), while shapes and text boxes take the presentation's default text style (p:defaultTextStyle). A synthetic deck with an otherStyle of 14 pt and a defaultTextStyle of 26 pt, exported as PDF, draws a table cell at 14 pt and a shape's and a text box's text at 26 pt. DeckCraft laid cells out through a stand-in shape that wasn't a table, so they took the default text style: a deck whose two styles differ (18 and 20 pt) drew its table text 2 pt too large and wrapped its cells. master_list_style sends text in a non-placeholder table to otherStyle, and Shape::table_cell builds the stand-in every cell layout uses (drawing, row heights, text placement, the caret and selection in a cell) as a table. The table shape itself resolves the same way, so the formatting state of a selected table reports the size its cells draw at. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>