Implementing getStyleByChar method on CanaryChatComponentFactory