Fixed text render bug on Macs