add font color contrast detection