Commit 074d7bb0 authored by Jan Djärv's avatar Jan Djärv
Browse files

nsfont.m (ns_findfonts): Handle empty matchingDescs (Bug#11541).

parent d41706aa
2012-11-08 Thomas Kappler <> (tiny change)
* nsfont.m (ns_findfonts): Handle empty matchingDescs (Bug#11541).
2012-11-08 Stefan Monnier <>
Use ad-hoc comparison function for the profiler's hash-tables.
......@@ -559,7 +559,11 @@ but also for ascii (which causes unnecessary font substitution). */
if (isMatch)
[fkeys removeObject: NSFontFamilyAttribute];
matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys];
if ([fkeys count] > 0)
matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys];
matchingDescs = [NSMutableArray array];
NSLog(@"Got desc %@ and found %d matching fonts from it: ", fdesc,
[matchingDescs count]);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment