Hello @ikratins,
To set the Default font for your Rectangles, do this:
1. Right-click inside your Rectangle and select "Edit Style...",
2. In the dialog that pops up, select the tab called "Font",
3. Set your preferred Font and click "OK".
To automatically insert the dimensions for each Rectangle, you could run the following macro:
Sub SetDrawShapeDimensionLabels()
REM Changes the Text inside all Draw Shapes in the first DrawPage of a Draw document.
REM The new text will display the shape's dimensions as follows: "0.00 x 0.00" ( in Millimeters ).
Dim oDrawPage As Object, oShape As Object
Dim strCaption As String, i As Integer
On Error GoTo Exit_Sub
oDrawPage = ThisComponent.getDrawPages().getByIndex( 0 )
For i = 0 To oDrawPage.getCount() - 1
oShape = oDrawPage.getByIndex( i )
If oShape.ImplementationName = "SvxShapeText" Then
strCaption = Format( oShape.Size.Width/100, "0.00" ) & " x " & Format( oShape.Size.Height/100, "0.00" )
oShape.setString( strCaption )
End If
Next
Exit_Sub:
End Sub