Is it possible to create a background that auto-fits to a text area? Specifically I'm looking for something like you can find in DM notes in D&D or on the Homebrewery where it basically creates a graphical header and footer and then fills in the middle with a color to fit a block of text. Reference image below. Thank you!
maybe you could just use a master page and layers to that?
Would that allow the text backgroung to "scale" with the size of the text?
Alternatively is there a way to add a stroke to only the top and bottom of text blocks as opposed to the entire thing?
hi valentor
if i understand your idea, this is the correct way:
- define a background color for your text field (f2)
- set the correct text 'distances' (f3)
- let scribus adjust the height of the text field to the content
unfortunately the last step is still buggy (https://bugs.scribus.net/view.php?id=15153) and needs to be done manually.
utnik
Quote from: utnik on October 04, 2023, 11:26:49 PMhi valentor
if i understand your idea, this is the correct way:
- define a background color for your text field (f2)
- set the correct text 'distances' (f3)
- let scribus adjust the height of the text field to the content
unfortunately the last step is still buggy (https://bugs.scribus.net/view.php?id=15153) and needs to be done manually.
utnik
Hey Utnik,
This 100% gets me the color and spacing I need for the background, however it doesn't accomplish the black "border lines" or "decoration" on the top or bottom. Is there a way to get something similar?
You might want to try a vector graphic of the shape you want , set the parameters of fill and stroke colors, and convert it to a text frame.
hi valentor
Quote from: Valentor on October 04, 2023, 11:32:37 PM...it doesn't accomplish the black "border lines" or "decoration" on the top or bottom. Is there a way to get something similar?
i would do it manually by creating the 'decoration lines' and use
'page'
→ 'snap to items' to place them after the height of the text frame is adjusted.
afaik there is no automatism for this...
utnik