Fix bug with font style flags (e.g. IsBold)