Page 1 of 1

Feature Request: Textbox inside padding

Posted: Sat Jan 20, 2018 2:25 pm
by caigner
When placing text on a drawing you are offered with the choice of where you want the origin of the textbox to be. That's very nice. Here is an example of top left origin. It seems there is some top padding above the text.
QCAD_textbox_no_padding.png
QCAD_textbox_no_padding.png (10.67 KiB) Viewed 10516 times
Unfortunately there is no option to add extra padding to the other sides so the text is right next to the left border of the textbox. To correct this you have to add some parallel construction lines and move the text a bit to the right. Now the text has nice padding.
QCAD_textbox_with_padding.png
QCAD_textbox_with_padding.png (10.76 KiB) Viewed 10516 times
It would be nice to have some padding options when adding/editing text.

I have opened a feature request here: https://www.ribbonsoft.com/bugtracker/i ... sk_id=1709

Re: Feature Request: Textbox inside padding

Posted: Sat Jan 20, 2018 6:25 pm
by Husky
caigner wrote:It seems there is some top padding above the text.
How you did that? I can't reproduce this padding effect. Which font was used?
Husky-2018.01.20-01.png
Husky-2018.01.20-01.png (4.76 KiB) Viewed 10499 times

Re: Feature Request: Textbox inside padding

Posted: Mon Jan 22, 2018 10:02 am
by andrew
caigner wrote:It would be nice to have some padding options when adding/editing text.
Unfortunately, I don't think padding exists in DXF/DWG which means if QCAD implements this, drawings would look different when opened in any other DXF/DWG application.

Re: Feature Request: Textbox inside padding

Posted: Fri Jan 26, 2018 1:09 pm
by caigner
Husky wrote:
caigner wrote:It seems there is some top padding above the text.
How you did that? I can't reproduce this padding effect. Which font was used?

Husky-2018.01.20-01.png
I used the font ISOPCEUR with size 2 and height 3.
That shifts the font a little bit downwards.
Actually that happened by accident. I didn't know at the time that this would shift the font.
QCAD_textbox_different_fontsize_and_height.png
QCAD_textbox_different_fontsize_and_height.png (17.26 KiB) Viewed 10372 times

Re: Feature Request: Textbox inside padding

Posted: Fri Jan 26, 2018 1:47 pm
by caigner
andrew wrote:
caigner wrote:It would be nice to have some padding options when adding/editing text.
Unfortunately, I don't think padding exists in DXF/DWG which means if QCAD implements this, drawings would look different when opened in any other DXF/DWG application.
It doesn't have to be "real" padding. It only has to look like padding. I imagine it to be more of a displacement of the text origin.
QCAD_textbox_with_padding_2.png
QCAD_textbox_with_padding_2.png (25.54 KiB) Viewed 10374 times

Re: Feature Request: Textbox inside padding

Posted: Fri Jan 26, 2018 7:04 pm
by Husky
caigner wrote:It doesn't have to be "real" padding. It only has to look like padding.
I could think about easier ways for a workaround. May I ask you how many times you would use this "padding" on average in a drawing? 5 times? 500 times?

Re: Feature Request: Textbox inside padding

Posted: Sat Jan 27, 2018 7:23 am
by Husky
Workaround: Using "Set Relative Zero" and "Coordinate". I used in the video RZ over the menu to show better what I'm doing. Instead of that I would recommend to use the Keyboard / RZ shortcut.



To use the same padding in multiple rectangles I would use "Copy with Reference" -> "Paste".

Hope that helps.

Re: Feature Request: Textbox inside padding

Posted: Sat Jan 27, 2018 11:13 am
by caigner
Husky, thanks for the video. Your approach works fine, but so does adding parallel construction lines and placing the text there.

But I still think, from a usability standpoint, a small addition to the text dialog (under the Text Geometry section) would be the right way to go. It would save the user from doing all the extra mouse clicks.
QCAD_textbox_with_padding_dialog.png
QCAD_textbox_with_padding_dialog.png (46.81 KiB) Viewed 10347 times

Re: Feature Request: Textbox inside padding

Posted: Sat Jan 27, 2018 11:26 am
by caigner
Husky wrote:May I ask you how many times you would use this "padding" on average in a drawing? 5 times? 500 times?
It depends. Last time I did it I had to place 24 texts. Some of them had padding left and on top, some were centered text with padding on the bottom.