Bug 72380 - Never drop first font when trimming
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 10 Dec 2013 02:21:57 +0000 (21:21 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 10 Dec 2013 02:22:49 +0000 (21:22 -0500)
commitfee834a9c9e1089a9ae29b1d8e8b6a4cc710204b
tree993870561c10d6ab168e92eae3a84c3e0dd99091
parentc9e24f9ef41e2c3e552ddd35d8c70daae5b505cd
Bug 72380 - Never drop first font when trimming

Let me show it with an example.

Currently:

$ fc-match symbol
symbol.ttf: "Symbol" "Regular"

$ fc-match symbol --sort | head -n 1
Symbol.pfb: "Symbol" "Regular"

$ fc-match symbol --sort --all | head -n 1
symbol.ttf: "Symbol" "Regular"

I want to make sure the above three commands all return the same font.
Ie.  I want to make sure FcFontMatch() always returns the first font
from FcFontSort().  As such, never trim first font.
src/fcmatch.c