Is there a simple solution for constant space between letters if they are written vertically? I figure out how to do it, it works good if there is no animation, in animation it slows down whole application (I don't know why). There is no option for obtaining the height of a font, so I treat them as a RShape. Part of the code:
I have a plan to write an animation using dinamic typography. The problem (for now) is a control of a camera. All scenes is in 2d, is it better to render it in 3d using coordinate z of the camera as a zoom, or leave it in 2d operating zoom by something else (scale maybe?)? I've tried PeasyCam, but I couldn't make it work. For the animation I am using motionlib (Key frames), everything has to be synchronized with audio. I've found a project which has camera control I would like to create - (
http://www.caligraft.com/calligraphies/web-lettree/applet). What would you recommend?
[edit]
I've found a solution. Now I have a problem with motionlib library. How could I render something and during the tweek change the camera? I wrote something like this (probably I have to "add" KeyFrame kf9 to kf1 somehow, but I don't know how to merge them:
Motion.setup(this);
t = new Timeline();
//This KeyFrame is for rendering some text
KeyFrame kf1 = new KeyFrame("1", 0);
kf1.addChild(new Tween("IKS",0, 50, 155));
////This KeyFrame is for changing camera parameters during KeyFrame
KeyFrame kf9 = new KeyFrame("9", 50);
kf9.addChild(new Tween("IKS",50, 200, 105));
//This KeyFrame is for rendering some text
KeyFrame kf2 = new KeyFrame("2", 156);
kf2.addChild(new Tween("IKS",50, 200, 125));
if (currentKeyFrames[0].getName()=="9")
{ x = currentKeyFrames[i].getTween(k).getPosition();
y = currentKeyFrames[i].getTween(k).getPosition();
z = currentKeyFrames[i].getTween(k).getPosition();