Subject: bug#17486: 24.4.50; set-face-font problem on OSX

From: "Jan D." <[email-masked]>
Date: Mon, 19 May 2014 08:05:15 +0200

Hello.

Dmitry Antipov skrev 2014-05-19 05:38:
> On 05/18/2014 10:33 PM, Jan Djärv wrote:
>
>>> Hm... so font_matching_entity sometimes returns [#<font-entity>]
>>> instead of #<font-entity>.
>>> Something may be wrong with font cache or with font driver-specific
>>> match routine.
>>
>> How can code (driver-specific) that has not changed suddenly become
>> wrong?
>
> It may return something which doesn't match font cache data structures
> any more
> because the latter was changed (mostly to avoid glitches in
> compact_font_caches).
>
> There was a slight confusion between font_list_entities (which operates
> on vectors of font entities) and font_matching_entity (which should operate
> on font entities). Hopefully the fix is almost obvious.
>

This fixes it.  Please check it in if there are no bad effects on other 
ports.

	Jan D.