emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 59d08e9: Remove font workaround for limited outda


From: YAMAMOTO Mitsuharu
Subject: [Emacs-diffs] emacs-25 59d08e9: Remove font workaround for limited outdated versions
Date: Wed, 09 Dec 2015 09:22:21 +0000

branch: emacs-25
commit 59d08e9898cd9096c6c70be45b2f4752d4ee7397
Author: YAMAMOTO Mitsuharu <address@hidden>
Commit: YAMAMOTO Mitsuharu <address@hidden>

    Remove font workaround for limited outdated versions
    
    * src/macfont.m (mac_font_descriptor_get_adjusted_weight): Remove
    workaround for HiraginoSans-W7 on OS X 10.11 and 10.11.1.
---
 src/macfont.m |   19 +++++--------------
 1 files changed, 5 insertions(+), 14 deletions(-)

diff --git a/src/macfont.m b/src/macfont.m
index fae284f..3023fbe 100644
--- a/src/macfont.m
+++ b/src/macfont.m
@@ -771,7 +771,7 @@ mac_font_descriptor_get_adjusted_weight 
(CTFontDescriptorRef desc, CGFloat val)
 {
   long percent_val = lround (val * 100);
 
-  if (percent_val == -40 || percent_val == 56)
+  if (percent_val == -40)
     {
       CTFontRef font = NULL;
       CFStringRef name =
@@ -786,19 +786,10 @@ mac_font_descriptor_get_adjusted_weight 
(CTFontDescriptorRef desc, CGFloat val)
        {
          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);
        }
     }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]