In Impress and in Draw, * Right-clicking a Text Box offers me an "Autofit Text" item on the context menu (i.e. "Autofit text font size to shape area"; see 156918). * Right-clicking a Rectangle, or any other drawing object, does _not_ offer an "Autofit Text" item on the context menu. I don't see why the text in shapes, especially simple ones like a rectangle, cannot be scaled to autofit the shape.
@Eyal: What kind of rectangle do you mean? We have a rectangle in the "Legacy Rectangle toolbar" and a rectangle in the "Basic Shapes" category of the custom shapes. Same for "other drawing objects". There exist a lot of object, which are used with text, in addition to the custom shapes, e.g. Polygon, Polyline, Bézier-curve, legacy oval, table-shape, form control, presentation outline, presentation title and subtitle.
Is the shrink-to-fit attribute available for ordinary shapes?
(In reply to Heiko Tietze from comment #2) > Is the shrink-to-fit attribute available for ordinary shapes? Yes: https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/OpenDocument-v1.3-os-part3-schema.html#__RefHeading__1420164_253892949 (and the attribute is indeed thus misnamed.)
(In reply to Regina Henschel from comment #1) > @Eyal: What kind of rectangle do you mean? We have a rectangle in the > "Legacy Rectangle toolbar" and a rectangle in the "Basic Shapes" category of > the custom shapes. Wait, the rectangle on the drawing toolbar directly, and the one in basic shapes, are two different things? :-O Anyway, both of them, and all other shapes. > Same for "other drawing objects". There exist a lot of object, which are > used with text, in addition to the custom shapes, e.g. Polygon, Polyline, > Bézier-curve, legacy oval, table-shape, form control, presentation outline, > presentation title and subtitle. I'd like to say all of them, but - perhaps the semantics are a bit hairy for the weirder shapes: It may not be clear what "fitting" means. Let's say all shapes with topologically connected interiors. And if we want to be more lenient, let's say all convex shapes. Of course, this issue also raises the question of why we have rectangular text areas for non-rectangular shapes, and why shouldn't autofit change the text area shape etc. but that's out-of-scope.
(In reply to Eyal Rozenberg from comment #3) > (In reply to Heiko Tietze from comment #2) > > Is the shrink-to-fit attribute available for ordinary shapes? > https://docs.oasis-open.org/office/OpenDocument/v1.3/os/part3-schema/ > OpenDocument-v1.3-os-part3-schema.html#__RefHeading__1420164_253892949 In this case it's a missing feature.
Bug 156994... that's what it _really_ means for text to fit an object!