I am currently defining styleNames for my custom itemRenderer's components in the override protected function createChildren.
Is that the apropriate place for this? I want font-size changes to be taken into consideration in the measure() and layoutContents() methods.
thats where I do it
presumably it has to create the children before it can measure them
although both measure and layoutContents both call a commitStyles first
Take a look at the code in IconItemRenderer related to messageStyleName for an example of how to do this.
You'll want to look at the styleChanged() and createMessageDisplay() methods. createMessageDisplay() is called by commitProperties() instead of createChildren() since the iconDisplay/messageDisplay/decoratorDisplay depend on other properties and we don't always create them.
Thank you, both.