diff options
| author | Adrian Robert | 2009-06-15 04:34:50 +0000 |
|---|---|---|
| committer | Adrian Robert | 2009-06-15 04:34:50 +0000 |
| commit | e41820ee6c6ff65668166931bdbf65c582fbb2fe (patch) | |
| tree | 9ea95a9c9dbbd73a9388ad9b4cffe72e1168baf2 /src | |
| parent | 0e6d12ca1015aafc9e2fccb7fca45d17003f4cdf (diff) | |
| download | emacs-e41820ee6c6ff65668166931bdbf65c582fbb2fe.tar.gz emacs-e41820ee6c6ff65668166931bdbf65c582fbb2fe.zip | |
(ns_get_covering_families): Retain scriptToFamilies.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 1 | ||||
| -rw-r--r-- | src/nsfont.m | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 08ac6ceac9a..cc5d3d630b0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -9,6 +9,7 @@ | |||
| 9 | (ns_has_attribute): Shrink the normal range. | 9 | (ns_has_attribute): Shrink the normal range. |
| 10 | (ns_findfonts): Don't worry about requested spec in determining | 10 | (ns_findfonts): Don't worry about requested spec in determining |
| 11 | need for synthItal. | 11 | need for synthItal. |
| 12 | (ns_get_covering_families): Retain scriptToFamilies. | ||
| 12 | 13 | ||
| 13 | 2009-06-14 Seiji Zenitani <zenitani@mac.com> | 14 | 2009-06-14 Seiji Zenitani <zenitani@mac.com> |
| 14 | 15 | ||
diff --git a/src/nsfont.m b/src/nsfont.m index c5e73604e7a..68ed1e6dd36 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -397,7 +397,7 @@ static NSSet | |||
| 397 | NSLog(@"Request covering families for script: '%@'", script); | 397 | NSLog(@"Request covering families for script: '%@'", script); |
| 398 | 398 | ||
| 399 | if (scriptToFamilies == nil) | 399 | if (scriptToFamilies == nil) |
| 400 | scriptToFamilies = [NSMutableDictionary dictionaryWithCapacity: 30]; | 400 | scriptToFamilies = [[NSMutableDictionary alloc] init]; |
| 401 | 401 | ||
| 402 | if ((families = [scriptToFamilies objectForKey: script]) == nil) | 402 | if ((families = [scriptToFamilies objectForKey: script]) == nil) |
| 403 | { | 403 | { |