changeset 1041:6a57bf20d8f9

Return displayName property instead of fontName property in dw_window_get_font()
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 26 May 2011 11:46:13 +0000
parents 7ea8a428e0cc
children 05ff61fd60d7
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Thu May 26 09:25:27 2011 +0000
+++ b/mac/dw.m	Thu May 26 11:46:13 2011 +0000
@@ -4286,7 +4286,7 @@
     {
         for(index=0, numberOfLines=0; index < stringLength; numberOfLines++)
             index = NSMaxRange([ms lineRangeForRange:NSMakeRange(index, 0)]);
-        
+
         *lines = numberOfLines;
     }
 }
@@ -7266,7 +7266,7 @@
     }
     if(font)
     {
-        NSString *fontname = [font fontName];
+        NSString *fontname = [font displayName];
         NSString *output = [NSString stringWithFormat:@"%d.%s", (int)[font pointSize], [fontname UTF8String]];
         return strdup([output UTF8String]);
     }
@@ -7323,7 +7323,7 @@
             }
 
             [object removeFromSuperview];
-            
+
             tmpitem = malloc(sizeof(Item)*(thisbox->count-1));
 
             /* Copy all but the current entry to the new list */