fix #28301: text style assignment does not take effect