This plug-in is highly experimental. I tried to test it as much as I can.
This plug-in is meant to be used with the Filled Text Selection Plug-in (prior to it).
It prepares your text before you can run the Filled Text Selection Plug-in.
version 2. Support double (hard) returns (newline characters) for new paragraphs (TO BE USED with version 10+ of Filled Text Selection Plug-in). And fixed major debugged code that skipped words in version 1.
(7.46 KiB) Downloaded 207 times
Plug-in Menu Location: Python-Fu/Prepare Text Into Selection
Instructions:
Have your block of text on a text layer that you'd like to fit into a selection.
Make your selection (you might want to save this selection as a path so you can later select it again to run the Filled Text Selection Plug-in).
Have the text layer active with selection active.
Run Plug-in (Python-Fu/Prepare Text Into Selection).
Wait for it to finish. Progress bar will update letting you know how far it's coming along.
The result is a text layer that has the optimal fontsize and proper (hard) line breaks to be then be used with the Filled Text Selection Plug-in.
That's it. Have fun.
Sample result (before on left, after on right).
Prepare_text_into_selection_before_after.png # (237.81 KiB) Viewed 3411 times Thumbnail
Tim, this plugin saves a lot of the manual work you would need to do if you were to use only the Filled Text Selection plugin.
But...
Would it be possible to force the fill to be made within the selection?
Imagine a selection in the form of the letter H, with two columns parallel and connected by a perpendicular column and between them.
It would be incredible if the padding of the text could fill only the selection area, not just the total area of the selection, including the region in the middle of the two columns, not selected.
Thx.
Attachments
Krikor0048 PreparaeTextInSelection GimpLearn
gl0048.png # (32.12 KiB) Viewed 3384 times Thumbnail
Last edited by Krikor on 05 Mar 2019, 21:17, edited 1 time in total.
"I feel that in both art and music, it's not the success that matters but the pleasure it gives you. Focus on the pleasure and the learning will come naturally." - Brian Weston
That's a major problem when you have something like the letter H.... I don't know the exact math involved in doing that.
Only horizontal filled shapes. I have no clue how to start fill words in to a shape such as the H.
Tim, this plugin saves a lot of the manual work you would need to do if you were to use only the Filled Text Selection plugin.
But...
Would it be possible to force the fill to be made within the selection?
Imagine a selection in the form of the letter H, with two columns parallel and connected by a perpendicular column and between them.
It would be incredible if the padding of the text could fill only the selection area, not just the total area of the selection, including the region in the middle of the two columns, not selected.
Thx.
It can be done in Illustrator with relative ease, however, I have to try to see if this can reproduced in Inkscape. It might be able to.
Untitled-1.png # (17.37 KiB) Viewed 79 times Thumbnail
"In order to attain the impossible, one must attempt the absurd."
~ Miguel de Cervantes