Jump to content
You must now use your email address to sign in [click for more info] ×

Auto resize a text box by his content


Recommended Posts

Hello,

I am trying to make a deck of question cards from a base of an exel file with the questions and I would need the size of the box that contains the text of the answer to automatically adapt to the answer. (the black rectangle with the rounded edges in the image)

815530555_Capturedcran2022-05-18113610.png.ddb211648fea75a98f9eb64cfb5a310a.png

Thanks

Link to comment
Share on other sites

Welcome to the Serif Affinity forums.

Unfortunately, that function is not provided in the Affinity applications.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.3.1

Link to comment
Share on other sites

You're welcome.

-- Walt
Designer, Photo, and Publisher V1 and V2 at latest retail and beta releases
PC:
    Desktop:  Windows 11 Pro, version 23H2, 64GB memory, AMD Ryzen 9 5900 12-Core @ 3.00 GHz, NVIDIA GeForce RTX 3090 

    Laptop:  Windows 11 Pro, version 23H2, 32GB memory, Intel Core i7-10750H @ 2.60GHz, Intel UHD Graphics Comet Lake GT2 and NVIDIA GeForce RTX 3070 Laptop GPU.
iPad:  iPad Pro M1, 12.9": iPadOS 17.3, Apple Pencil 2, Magic Keyboard 
Mac:  2023 M2 MacBook Air 15", 16GB memory, macOS Sonoma 14.3.1

Link to comment
Share on other sites

1 hour ago, Esperida said:

I would need the size of the box that contains the text of the answer to automatically adapt to the answer. (the black rectangle with the rounded edges in the image)

There are two options:

• use an Artistic Text frame. This always resizes with its content.
Disadvantage: corresponding to its self-growing width it doesn't do line breaks. If the answer should flow across various lines you would need to type line breaks manually.

• Use a text Decoration style to create the black text background. This will auto-grow with the amount of text.
Disadvantage: no rounded corners.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 only

Link to comment
Share on other sites

Isn't this something Constraints could do?

To save time I am currently using an automated AI to reply to some posts on this forum. If any of "my" posts are wrong or appear to be total b*ll*cks they are the ones generated by the AI. If correct they were probably mine. I apologise for any mistakes made by my AI - I'm sure it will improve with time.

Link to comment
Share on other sites

Constraints need object layers (not just characters within frames) + someone who moves or scales objects. The latter condition reminds me to pinned objects which can get moved by text content / while typing. (without using Constraints)

Nevertheless, a quite cumbersome workflow. And definitely doesn't work in an exported PDF, as the OP might possibly have in mind.

macOS 10.14.6 | MacBookPro Retina 15" | Eizo 27" | Affinity V1 only

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.