* src/macfont.m (mac_font_descriptor_get_adjusted_weight): Remove
workaround for HiraginoSans-W7 on OS X 10.11 and 10.11.1.
{
long percent_val = lround (val * 100);
- if (percent_val == -40 || percent_val == 56)
+ if (percent_val == -40)
{
CTFontRef font = NULL;
CFStringRef name =
{
CFIndex weight = mac_font_get_weight (font);
- if (percent_val == -40)
- {
- /* Workaround for crash when displaying Oriya characters
- with Arial Unicode MS on OS X 10.11. */
- if (weight == 5)
- val = 0;
- }
- else /* percent_val == 56 */
- {
- if (weight == 9)
- /* Adjustment for HiraginoSans-W7 on OS X 10.11. */
- val = 0.4;
- }
+ /* Workaround for crash when displaying Oriya characters
+ with Arial Unicode MS on OS X 10.11. */
+ if (weight == 5)
+ val = 0;
CFRelease (font);
}
}