|
|
|
|
Re: Problems with calculated text size [message #1250899 is a reply to message #1072662] |
Wed, 19 February 2014 18:12 |
nicolas h Messages: 60 Registered: February 2011 Location: Grenoble, France |
Member |
|
|
Hi there,
I also need to calculate the size of a multitext, but I don't manage to.
I tried this two codes:
dimension = GraphitiUi.getUiLayoutService().calculateTextSize(text.getValue(), textFont); and
dimension = gaService.calculateSize(text);
The first case works, but I want now to set the width et only calculate the height. Is that possible ?
I tried this:
gaService.setWidth(text, 100); or
But when I calculate, the width value is greater than the one I set.
In the second case, the calculateSize method simply does not return a calculated value.
What is the best solution to calculate size at set width ?
Regards,
--
Nicolas
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03591 seconds