# Reform text

**URL:** <https://forum.kirupa.com/t/reform-text/250442>\
**Category:** Uncategorized\
**Created:** [January 29, 2008, 5:31pm UTC](https://forum.kirupa.com/t/reform-text/250442 "2008-01-29T17:31:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mxo22](https://avatars.discourse-cdn.com/v4/letter/m/f475e1/32.png) [@mxo22](https://forum.kirupa.com/u/mxo22)\
**Post date:** [January 29, 2008, 5:31pm UTC](https://forum.kirupa.com/t/reform-text/250442/1 "2008-01-29T17:31:05Z")

</div>

hi I am tring to reform a text I mean split some text in letters and put each letter after the other one what I am doing to get the positions is get the boundaries for each char with getCharBoundaries someting like this:

inside a loop

```auto
var rect:REctangule = originalText.getCharBoundaries(i);

```

then

```auto
mynewletter.x = rect.x-2 //because starts in in 2 always 

```

the problem is some of the letters fit ok I some no some of thm look like a pixel offset I was wondering is there a better way to do this? because can be done with different types of fonts so this has to be automatic I also tried the sum of mynewletterwdith witch getLineMetrics(0) like

```auto

posx = 0

mynewletter.x = posx

posx += mynewletter.getLineMetrics(0).width

```

and also has offset in some letters just some of them please anyone can point me a better way to do this , thanks in advanced

[http://www.realreelclothing.com/in/error.jpg](http://www.realreelclothing.com/in/error.jpg)

that picture is what I am talking about they are not too aligned that picture is with a zoom in the swf using the r.x-2 to calculate each position .

please anyone can help me the textfield is created an autosized to left please anyone knows how can I do that

I have attached an example of what I am trying to do is very simple please somebody chek it thanks.
