Scribus Forums

Scribus => Beginner Talk => Topic started by: Valentor on October 04, 2023, 03:20:17 PM

Title: Text Background Images?
Post by: Valentor on October 04, 2023, 03:20:17 PM
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!

Title: Re: Text Background Images?
Post by: PatJr on October 04, 2023, 07:11:53 PM
maybe you could just use a master page and layers to that?
Title: Re: Text Background Images?
Post by: Valentor on October 04, 2023, 11:14:05 PM
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?
Title: Re: Text Background Images?
Post by: utnik on October 04, 2023, 11:26:49 PM
hi valentor

if i understand your idea, this is the correct way:
unfortunately the last step is still buggy (https://bugs.scribus.net/view.php?id=15153) and needs to be done manually.

utnik
Title: Re: Text Background Images?
Post by: Valentor on October 04, 2023, 11:32:37 PM
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?
Title: Re: Text Background Images?
Post by: AdmFubar on October 04, 2023, 11:48:33 PM
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.
Title: Re: Text Background Images?
Post by: utnik on October 05, 2023, 12:32:14 PM
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