nicolasgramlich/AndEngine — Issue #25: FontUtils measures some characters incorrectly
Author: ltmon
Created: 2012-01-28 23:04:39+00:00
State: open

Some characters, it seems punctuation symbols in particular, do not have their width's measured correctly by FontUtils.

Expected result: Red rectangle lines up with text width.

Actual result: Perfect for the first string ("TEST"), but too short for the second string ("TEST.").

```Java
Text t = new Text(100f, 100f, theme.getMainFont().getFont(), "TEST", getVertexBufferObjectManager());
Rectangle r = new Rectangle(ct.getX(), ct.getY(), ct.getWidth(), ct.getHeight(), getVertexBufferObjectManager());
r.setColor(Color.RED);

scene.attachChild(r);
scene.attachChild(t);

t = new Text(100f, 100f, theme.getMainFont().getFont(), "TEST.", getVertexBufferObjectManager());
r = new Rectangle(ct.getX(), ct.getY(), ct.getWidth(), ct.getHeight(), getVertexBufferObjectManager());
r.setColor(Color.RED);

scene.attachChild(r);
scene.attachChild(t);
```