Sg2.9
Text Pencil
Recent RSS
Creator:  Jonathan Puckey
Date:  11. August 2006, 00:00

Text Pencil lets you draw with text.

Note: To use Text Pencil you will need to download and install the latest version of Scriptographer (2.8.050 or above)

I used an earlier version of Text Pencil to create a poster

New features in v1.5:
• Allows the use of non monospaced fonts
• Draw with words
• Perfect spacing (turn it off for less perfect spacing)
• Select the position in the text with a popup list.

Please post any bugs you find in the comments

Re: Text Error!
From:  Jürg Lehni
Date:  14. October 2006, 12:23

There were two version of every constructor in each art object: one with and one without a document argument. With every new art object prototype added, it became more and more obvious that this was a design mistake.

GREAT tool!
Date:  19. October 2006, 17:26

Thanks for a supernice tool, I'm currently using it in one of my projects and it works just great! However, I'm experiencing the same problems that someone here pointed out, ie I'm unable to change the Size and Tracking values, the controls just don't respond. Also the font list issue - are these fixed yet and I missed it?

What I'd love to see in the future - pen pressure support (ie for interactive size). I checked the scriptograph API for it, but could not find it. If it is somewhere to be found, please let me know and I'll try to hack my way into it.

Anyway, thanks again for an amazing tool!

Re: GREAT tool!
Date:  19. October 2006, 17:50

Wops. Looks like the last bug fix was performed on a version of Text Pencil that wasn't fixed for this yet. Please redownload the script and let me know if it works now.

Re: GREAT tool!
Date:  19. October 2006, 19:38

It works perfect now - thanks again, Jonathan!

Errors
From:  Djoe
Date:  26. October 2006, 03:53

I keep getting errors on Illustrator CS 2 on Windows XP:

Wrapped com.scriptographer.ScriptographerException: Object is not wrapping an item ref. (F:\Programme\Adobe\Adobe Illustrator CS2\Zusatzmodule\Scriptographer\scripts\tools\textpencil.js#24)

org.mozilla.javascript.WrappedException: Wrapped com.scriptographer.ScriptographerException: Object is not wrapping an item ref. (F:\Programme\Adobe\Adobe Illustrator CS2\Zusatzmodule\Scriptographer\scripts\tools\textpencil.js#24)

at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1705)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)

at org.mozilla.javascript.JavaMembers.get(JavaMembers.java:98)

at org.mozilla.javascript.NativeJavaObject.get(NativeJavaObject.java:102)

at com.scriptographer.js.UnsealedJavaObject.get(UnsealedJavaObject.java:62)

at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1312)

at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1334)

at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1323)

at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2813)

at script.onMouseDown(F:\Programme\Adobe\Adobe Illustrator CS2\Zusatzmodule\Scriptographer\scripts\tools\textpencil.js:24)

at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2248)

at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149)

at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)

at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)

at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:147)

at com.scriptographer.js.FunctionHelper.callFunction(FunctionHelper.java:61)

at com.scriptographer.ai.Tool.onMouseDown(Tool.java:128)

at com.scriptographer.ai.Tool.onMouseDown(Tool.java:176)

Caused by: com.scriptographer.ScriptographerException: Object is not wrapping an item ref.

at com.scriptographer.adm.TextValueItem.getText(Native Method)

at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)

... 15 more

Wrapped com.scriptographer.ScriptographerException: Object is not wrapping an item ref. (F:\Programme\Adobe\Adobe Illustrator CS2\Zusatzmodule\Scriptographer\scripts\tools\textpencil.js#24)

org.mozilla.javascript.WrappedException: Wrapped com.scriptographer.ScriptographerException: Object is not wrapping an item ref. (F:\Programme\Adobe\Adobe Illustrator CS2\Zusatzmodule\Scriptographer\scripts\tools\textpencil.js#24)

at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1705)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:157)

at org.mozilla.javascript.JavaMembers.get(JavaMembers.java:98)

at org.mozilla.javascript.NativeJavaObject.get(NativeJavaObject.java:102)

at com.scriptographer.js.UnsealedJavaObject.get(UnsealedJavaObject.java:62)

at org.mozilla.javascript.ScriptableObject.getProperty(ScriptableObject.java:1312)

at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1334)

at org.mozilla.javascript.ScriptRuntime.getObjectProp(ScriptRuntime.java:1323)

at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:2813)

at script.onMouseDown(F:\Programme\Adobe\Adobe Illustrator CS2\Zusatzmodule\Scriptographer\scripts\tools\textpencil.js:24)

at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:2248)

at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:149)

at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:337)

at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2755)

at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:147)

at com.scriptographer.js.FunctionHelper.callFunction(FunctionHelper.java:61)

at com.scriptographer.ai.Tool.onMouseDown(Tool.java:128)

at com.scriptographer.ai.Tool.onMouseDown(Tool.java:176)

Caused by: com.scriptographer.ScriptographerException: Object is not wrapping an item ref.

at com.scriptographer.adm.TextValueItem.getText(Native Method)

at sun.reflect.GeneratedMethodAccessor67.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

at java.lang.reflect.Method.invoke(Unknown Source)

at org.mozilla.javascript.MemberBox.invoke(MemberBox.java:142)

... 15 more

Re: Errors
From:  Djoe
Date:  27. October 2006, 14:49

Now moved the script from the "tools" directory to the "scripts" directory as shown in the movies and it works. Strange...

Re: Errors
Date:  7. November 2006, 15:15

Just a small correction - changing

var whichfontList = new PopupList(dialog);

for

var whichfontList = new PopupList(dialog,PopupList.OPTION_SCROLLING);

allows to scroll through the fonts in your system - useful if you have lots of them as usual!

Re: Errors
Date:  8. November 2006, 15:51

Thanks for the pointer, I will update the script straight away.

Re: Errors
From:  Caglar
Date:  19. November 2006, 00:38

i get this error when i try to use this

C:\Program Files\Adobe\Adobe Illustrator CS2\Plug-ins\Scriptographer\Scriptographer\scripts\scripts\textpencil.js:205,0: TypeError: Cannot read property "0" from undefined (C:\Program Files\Adobe\Adobe Illustrator CS2\Plug-ins\Scriptographer\Scriptographer\scripts\scripts\textpencil.js#205)

java.lang.NullPointerException

at com.scriptographer.ai.Tool.setScript(Tool.java:68)

at com.scriptographer.gui.MainDialog$ToolButton.onClick(MainDialog.java:286)

at com.scriptographer.adm.Button.onNotify(Button.java:75)

at com.scriptographer.adm.NotificationHandler.onNotify(NotificationHandler.java:55)

Re: Errors
From:  g
Date:  29. November 2006, 07:17

Caglar, you seem to have the Scriptographer folder two times, have you tried that?

Scriptographer\Scriptographer\scripts\scripts\

Is your Java version installed?

also the scripts folder seems to be duplicated

try moving the texpencil.js file to the tools folder, not the scripts folder.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19