Hi,

on the occasion of issue 54577 I have played around with fontwork custom shapes and soon some questions arise.

The fontwork object has the property "TextFitToSize". This property has values of type TextFitToSizeType, which is an enumeration with values "NONE", "PROPORTIONAL", "ALLLINES", and "RESIZEATTR". I can set ALLLINES via macro and (apart from issue 115922) via UI.

In the API [1] I find
"TextFitToSizeType TextFitToSize;
Description
With this set to true, the text inside of the Shape is stretched to fit into the Shape." which sounds inconsistent to me. "true" is boolean, and TextFitToSizeType seems to work and has four values.

Then I had a look into ODF spec. There I find the attribute "draw:fit-to-size" with type boolean. But I find nothing corresponding to TextFitToSizeType.

Does that mean, that I cannot save this property values or should they be saved in another way?


I see in ODF the attribute draw:text-path-scale with the values "path" and "scale". How do they correspond to properties in OOo?


The other way round I see in OOo in the Macro IDE in CustomShapeGeometrie "TextPath" the value "ScaleX". I think, it belongs to the unpublished service EnhancedCustomShapeTextPath [2]. But what is the purpose of it? And how is it stored in ODF?


And does OOo property "TextPathMode" correspond to ODF attribute "draw:text-path-mode" directly?


[1] http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/TextProperties.html#TextFitToSize [2] http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/EnhancedCustomShapeTextPath.html

kind regards
Regina

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to