Page 1 of 1

text blocks matrix

Posted: 17 Feb 2014, 19:37
by donjames
I am having problems with setting a matrix transform on Text

For paths it works, this is what I call:
m_pPath->GetData()->SetTransform(m_pMatrixTransform.GetPtr());

But for text blocks, all I could find was this API:
m_pText->SetLayoutTransform(m_pMatrixTransform.GetPtr());

When I set it, the text disappears.

Any ideas?
Don

Re: text blocks matrix

Posted: 18 Feb 2014, 12:26
by jsantos
Yes, use the RenderTransform property for changing the rendering position. For the canvas container it is the best choice.

http://www.scottlogic.com/blog/2008/12/ ... rence.html

Re: text blocks matrix

Posted: 18 Feb 2014, 15:40
by donjames
That works. Thanks!