-
1. Re: How can I simply create a text frame with perfect rounded ends?
Peter Spier Apr 1, 2012 3:11 AM (in response to JerryPF)Corner effects changed in ID when they went "live" and they lost the ability to make a real semicircle. You can still use the Pathfinder, though, to combine shapes.
Having screen grabs with non-printing characters showing (and select the frame so we can see any applied insets) might give some insight into the fitting problem.
-
2. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 1, 2012 3:25 AM (in response to Peter Spier)Hi Peter. Thanks for your very quick reply.
Here's a grab showing non-printing characters and the frames selected. I've used the Pathfinder, but just to make sure the shape had the fewest points (six) I drew it in Illustrator as well. Don't know why I get the standoff (inset) on the right side. It appears to equal the height of the frame!
-
3. Re: How can I simply create a text frame with perfect rounded ends?
Peter Spier Apr 1, 2012 3:44 AM (in response to JerryPF)I'm not seeing any obvious reason for the sizing problem. Can you post that sample page someplace and put a link here?
-
4. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 1, 2012 5:42 AM (in response to Peter Spier)Hi Peter
I've copied the elements to a new document and changed the font to Arial, to
avoid any issues.
The InDesign file is at:
http://dl.dropbox.com/u/23832705/Sample%20page.indd
Kind regards,
Jerry Fowler
Design & Illustration
-
5. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 1, 2012 5:42 AM (in response to Peter Spier)Hi Peter
Forgot to zip the file.
The InDesign file is at:
http://dl.dropbox.com/u/23832705/Sample%20page.zip
<http://dl.dropbox.com/u/23832705/Sample%20page.indd>
Kind regards,
Jerry Fowler
Design & Illustration
-
6. Re: How can I simply create a text frame with perfect rounded ends?
Peter Spier Apr 1, 2012 6:01 AM (in response to JerryPF)It looks like a bug to me.
You'll want to delete your personal information when replying by email. I've done it for you on the last two posts.
-
7. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 1, 2012 9:28 AM (in response to Peter Spier)Hi Peter
I don't think th last linkn worked.
The InDesign file is at:
http://dl.dropbox.com/u/23832705/Sample%20page.zip
Kind regards,
Jerry Fowler
-
8. Re: How can I simply create a text frame with perfect rounded ends?
Peter Spier Apr 1, 2012 9:28 AM (in response to JerryPF)The second link worked fine. Did you see my previous response? Looks to me like you found a bug.
-
9. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 1, 2012 10:50 AM (in response to Peter Spier)Hi Peter
I've been out this afternoon. Thanks for all your replies. So if this is a
bug, it's not something to do with my system, but it's a fault with the
program?
Kind regards,
-
10. Re: How can I simply create a text frame with perfect rounded ends?
Peter Spier Apr 1, 2012 10:54 AM (in response to JerryPF)So it would seem. I can reproduce it across sevral versions of ID, using both your file and files I create here.
It's not you.
-
11. Re: How can I simply create a text frame with perfect rounded ends?
Manish-Sharma Apr 1, 2012 2:53 PM (in response to JerryPF)There is a pre-written script present in the indesign , named as "Cornereffects"
that script doesn't show the limitation that we have in corner effects but the only disadvantage is that there is no preview and you have define the offset value again if you entered it wrong.
Windows>scripts, In the panel go to applications-->users-->javascript-->cornereffects.jsx
This might help
-
12. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 1, 2012 3:19 PM (in response to Manish-Sharma)Thanks, but this still gives a slightly distorted shape. Probably best to
create the shape from two circles and a rectangle, add the paths and then
group with an overlaying text box. Sledgehammer to crack a nut, but the
cleanest option. As Peter says, it seems like there's a bug!
-
13. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 1, 2012 3:21 PM (in response to Peter Spier)Thanks of your help Peter
Does this qualify me for a complimentary upgrade to InDesign C5.5? : )
-
14. Re: How can I simply create a text frame with perfect rounded ends?
Peter Spier Apr 1, 2012 4:46 PM (in response to JerryPF)Not even a downgrade to version 2.0.
-
15. Re: How can I simply create a text frame with perfect rounded ends?
Laubender Apr 2, 2012 12:35 AM (in response to JerryPF)@Jerry – to get perfect round corners (and some more features), Hans Haesler wrote some wonderful scripts:
EckenEffekte_504d.js
EckenEffekteMix_504d.js
EckenEffektePlus_504d.js
The scripts are in german. Be "warned", that if you type in a decimal point the script immediately will change that to a "comma", which is perfectly right in german language.
You'll find the scripts among others at the download page at www.fachhefte.ch. Look for the JavaScripts section.
Uwe
-
16. Re: How can I simply create a text frame with perfect rounded ends?
Eugene Tyson Apr 2, 2012 1:39 AM (in response to Peter Spier)What's the bug?
-
17. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 2, 2012 9:26 AM (in response to Laubender)Danke sehr.
Ich kann es versuchen.
Jerry Fowler
Design & Illustration
-
18. Re: How can I simply create a text frame with perfect rounded ends?
Peter Spier Apr 2, 2012 3:11 AM (in response to Eugene Tyson)Eugene Tyson wrote:
What's the bug?
The bug appears to be in how ID fits the text in the frame. At a long length you can left, center or right-align the text in that shape and it will works fine, but as you shorten the shape you reach a point where there is more space on eihter end than was used when that end was the one to which the text was previously aligned, so you would expect the text to continue to fit if you shorten some more, but when you do the line breaks. Making the frame a bit deeper restores the line, which would lead you to think the leading slug is running up against the curves, but that's not a problem when you have the longer frame (you can highlight the text to see the slug and it is tucking into the curve area), so if it becomes a problem, I think that's a bug.
-
19. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 2, 2012 3:32 AM (in response to Peter Spier)I think I've experienced this before Peter, with narrow text frames.
I've just hit on a solution, which allows me to set the left indent. Use the
perfectly drawn lozenge shape, convert to text frame, align left a 4mm box
with no stroke or fill using text wrap. The text in the shape indents the
required amount and moves far enough to the right without splitting into two
lines.
Jerry Fowler
Design & Illustration
-
20. Re: How can I simply create a text frame with perfect rounded ends?
[Jongware] Apr 2, 2012 3:43 AM (in response to JerryPF)One Sledgehammer Script coming up: select your text frame and run this little Javascript. It adds rounded sides as per original frame size and copies line color and thickness from the text frame (where it is removed). Then it groups everything together, and leaves it selected (since you started with a selection as well).
It adds the new objects (rectangle, circles) simply to the parent of the selected text frame -- under normal circumstances, that ought to be the page you are looking at.
textframe = app.selection[0]; left = textframe.geometricBounds[1]; right = textframe.geometricBounds[3]; height = textframe.geometricBounds[2] - textframe.geometricBounds[0]; center = (textframe.geometricBounds[2] + textframe.geometricBounds[0])/2; radius = height/2; leftRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,left-radius,center+radius,left+radius]}); riteRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,right-radius,center+radius,right+radius]}); rectBetween = textframe.parent.rectangles.add({geometricBounds:[center-radius,left,center+radius,right]}); roundedRect = rectBetween.addPath([leftRounded,riteRounded]); roundedRect.properties = {strokeWeight:textframe.strokeWeight,strokeTint:textframe.strokeTint,strokeColor:textframe.strokeColor}; textframe.properties = {strokeWeight:0}; app.select(textframe.parent.groups.add([roundedRect,textframe])); -
21. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 2, 2012 4:06 AM (in response to [Jongware])Many thanks. I haven't had time to try this yet. I've experienced problems
with other scripts, that if you need to edit and extend the box, the corners
stretch and become elliptical. I realise I could use the direct selection
tool to increase the width.
Jerry Fowler
Design & Illustration
-
22. Re: How can I simply create a text frame with perfect rounded ends?
JerryPF Apr 2, 2012 4:22 AM (in response to [Jongware])Thanks Jongware. This is clever script. After applying the script, going
through the most recent undos shows how circles are added to the rectangle.
Jerry Fowler
Design & Illustration
-
23. Re: How can I simply create a text frame with perfect rounded ends?
[Jongware] Apr 2, 2012 4:23 AM (in response to JerryPF)Could it be faster/easier to just ungroup, delete the existing frame, and re-create it?
-
24. Re: How can I simply create a text frame with perfect rounded ends?
[Jongware] Apr 2, 2012 4:34 AM (in response to JerryPF)Wait -- why not make the script do all the work after you resized a frame! Replace the first line with this new fragment (the first line itself is the same, it's the if..stuff that counts):
textframe = app.selection[0]; if (textframe instanceof Group && textframe.pageItems.length == 2) { roundedRect = app.selection[0].polygons[0]; textframe = app.selection[0].textFrames[0]; textframe.properties = {strokeWeight:roundedRect.strokeWeight,strokeTint:roundedRect.strokeTint,strokeColor:roundedRect.strokeColor}; roundedRect.remove(); app.selection[0].ungroup(); }It copies the rounded rectangle stroke properties to the textframe and deletes the rounded rectangle, effectively leaving the object ready to be processed as if you selected the original text frame.
Don't use it on a frame that you tinkered with manually, though, as those edits will be lost ... (well, apart from re-sizing).
-
25. Re: How can I simply create a text frame with perfect rounded ends?
[Jongware] Apr 2, 2012 4:55 AM (in response to [Jongware])One last refinement: It's convenient if the script allows you to Undo/Redo its actions -- let me add that for completeness' sake. The following is the complete script again, no further editing required.
//DESCRIPTION:Overlay round corners on a single textframe // A Jongware Script 2-Apr-2012 app.doScript(function(textframe){ if (textframe instanceof Group && textframe.pageItems.length == 2) { roundedRect = app.selection[0].polygons[0]; textframe = app.selection[0].textFrames[0]; textframe.properties = {strokeWeight:roundedRect.strokeWeight,strokeTint:roundedRect.strokeTint,strokeColor:roundedRect.strokeColor}; roundedRect.remove(); app.selection[0].ungroup(); } left = textframe.geometricBounds[1]; right = textframe.geometricBounds[3]; height = textframe.geometricBounds[2] - textframe.geometricBounds[0]; center = (textframe.geometricBounds[2] + textframe.geometricBounds[0])/2; radius = height/2; leftRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,left-radius,center+radius,left+radius]}); riteRounded = textframe.parent.ovals.add({geometricBounds:[center-radius,right-radius,center+radius,right+radius]}); rectBetween = textframe.parent.rectangles.add({geometricBounds:[center-radius,left,center+radius,right]}); roundedRect = rectBetween.addPath([leftRounded,riteRounded]); roundedRect.properties = {strokeWeight:textframe.strokeWeight,strokeTint:textframe.strokeTint,strokeColor:textframe.strokeColor}; textframe.properties = {strokeWeight:0}; app.select(textframe.parent.groups.add([roundedRect,textframe])); }, ScriptLanguage.JAVASCRIPT, app.selection[0], UndoModes.ENTIRE_SCRIPT, "Overlay Round Corners");







