Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Filled Text Selection Plug-in

Mon Mar 04, 2019 1:43 pm

auto-scale each line of your block of text to fit in a rectangle selection
Image

More details and you can get plug-in here --> Filled Text Selection Plug-in

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 3:17 pm

version 5 allows options to toggle "Scale Last Line" (for when the line has too few characters that you might not want to scale it, because it would look weird).
Image

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 4:16 pm

version 7. Irregular shape support for when you want to fit a shape even closer than manually adjusting it.
Image

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 4:58 pm

That's pretty cool, will test out though I'm not a big fan of stretched text.
But it looks okay if you don't have too big difference with the line lengths.
I guess, because of the limitations with Gimp's text tool, justification like it's done in page-layout programs would be impossible?

https://practicaltypography.com/justified-text.html

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 5:06 pm

It would look better if your went Text->Path->Scale path->Render path (there would be no need to blow up the text first).

Also, in practical typography, you don't stretch the characters, you stretch the spaces between them. You know where you can find an example :)

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 5:21 pm

My example is kind'a extreme because it only has a few words on each line.
With actual practice I think it would look better the because the lines would be be longer so the margin or difference would be smaller and I think it would look better.
Which..means I'll go and copy some sample text and see if it looks better with more text.

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 5:24 pm

Here's the difference between justify filled and the script.
Mine is not as clear... I might have to look into ofnuts suggestion about the path to make it clear.
justify filled on the left, my version on the right.
If you look you can hardly tell that text is stretched...but in justify you can see some spacious areas..
If not better than at least this plug-in gives you an option other than auto justify.
Image

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 5:30 pm

Btw, Thanks ofnuts..I am looking into Text->Path.... right now.

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 7:28 pm

Version 8 works with paths of font (scaling) instead of scaling fonts.
Much nicer.
Image
With above example I didn't try to fit the text into the shape first so you get the squished on top and bottom because the text was originally for a rectangle. If you try to fit it yourself first it, then use plug-in to fine tune then it'd be nicer.

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 7:35 pm

This is not practical typography by the way! heheeh.

Re: Filled Text Selection Plug-in

Mon Mar 04, 2019 10:24 pm

A sample play
Image

Re: Filled Text Selection Plug-in

Tue Mar 05, 2019 1:26 am

That looks very nice, Tin. I like the way the text fills the image. That is another habit that could get addictive!

Re: Filled Text Selection Plug-in

Tue Mar 05, 2019 9:41 am

Right now you gotta manually manipulate the text before using this plug-in. I am thinking of writing another plug-in to automate this manual process before using this plug-in.

Re: Filled Text Selection Plug-in

Tue Mar 05, 2019 1:56 pm

Arranging the text with optimal font-size is now automated.

Image

You can get the helper plug-in here -> Prepare Text Into Selection Plug-in

Re: Filled Text Selection Plug-in

Tue Mar 05, 2019 3:49 pm

Now supports new paragraphs (double hard returns [new-line characters])Image

Re: Filled Text Selection Plug-in

Wed Mar 06, 2019 12:34 pm

I tried few times long text but my piece won't prepare like yours.
Then I tried with 4 short lines of plain language in a circle pot and it worked like charm.

But I'm not happy, will test on another system.

Re: Filled Text Selection Plug-in

Wed Mar 06, 2019 9:07 pm

version 1 of prepare had major bugs.

Re: Filled Text Selection Plug-in

Wed Mar 06, 2019 11:53 pm

Impressive work, Tran. Not really into text/font artwork but have appreciated other folks results over the years and your cool tools really are impressive with this type of fill. :)
Post a reply