1
Support / tk2dTextMesh pivot not correctly centered using Middle Center anchor
« on: December 19, 2013, 04:53:12 pm »
Hi,
I'm using 2D Toolkit v 2.3.3
I have the problem described in the attached screenshot. Basically the pivot of the generated tk2dTextMesh is not in the center if its bounding box. I've tried several options but the only solution I've found is to play with:
public static float GetYAnchorForHeight(float textHeight, GeomData geomData)
public static float GetXAnchorForWidth(float lineWidth, GeomData geomData)
in tk2dTextGeomGen. But it doesn't smell like a solution, at all.
May you help me in fixing this problem?
Thank you
I'm using 2D Toolkit v 2.3.3
I have the problem described in the attached screenshot. Basically the pivot of the generated tk2dTextMesh is not in the center if its bounding box. I've tried several options but the only solution I've found is to play with:
public static float GetYAnchorForHeight(float textHeight, GeomData geomData)
public static float GetXAnchorForWidth(float lineWidth, GeomData geomData)
in tk2dTextGeomGen. But it doesn't smell like a solution, at all.
May you help me in fixing this problem?
Thank you
