Files
texrra-engine/docs
gloamxun 57424015de Measure image saveboxes from decoded pixels
A savebox whose body was only \includegraphics measured as empty text because
images were attached to the geometry after geometry_and_body had measured the
box. geometry_and_body_with_images now seeds the image map before stripping, so
measure_savebox sees the decoded RasterImage: natural size is pixels at 72 dpi
(65,782 sp per pixel), and explicit width/height options in the optional
argument win, with the other dimension scaled proportionally.

Project preview/PDF paths pass their decoded images into the new entry point;
the flat preview keeps the empty map. The body-definition capture only handles
\newsavebox, so its call passes an empty map too.

A test stores a 100x50 image in \logo and checks the frozen width/height and a
zero depth.
2026-10-27 01:14:02 +08:00
..
2026-10-19 11:41:46 +08:00
2026-10-19 11:41:46 +08:00