changeset 103426:3c179a4d2b8a

(ns_get_covering_families): Retain scriptToFamilies.
author Adrian Robert <Adrian.B.Robert@gmail.com>
date Mon, 15 Jun 2009 04:34:50 +0000
parents 60d7ccbdecb8
children dd7376d3709c
files src/ChangeLog src/nsfont.m
diffstat 2 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Sun Jun 14 23:39:07 2009 +0000
+++ b/src/ChangeLog	Mon Jun 15 04:34:50 2009 +0000
@@ -9,6 +9,7 @@
 	(ns_has_attribute): Shrink the normal range.
 	(ns_findfonts): Don't worry about requested spec in determining
 	need for synthItal.
+	(ns_get_covering_families): Retain scriptToFamilies.
 
 2009-06-14  Seiji Zenitani  <zenitani@mac.com>
 
--- a/src/nsfont.m	Sun Jun 14 23:39:07 2009 +0000
+++ b/src/nsfont.m	Mon Jun 15 04:34:50 2009 +0000
@@ -397,7 +397,7 @@
 	NSLog(@"Request covering families for script: '%@'", script);
 
     if (scriptToFamilies == nil)
-	scriptToFamilies = [NSMutableDictionary dictionaryWithCapacity: 30];
+        scriptToFamilies = [[NSMutableDictionary alloc] init];
 
     if ((families = [scriptToFamilies objectForKey: script]) == nil)
       {