[Fontconfig] fontconfig match question
Owen Taylor
otaylor at redhat.com
Mon Jul 17 04:10:21 PDT 2006
On Sun, 2006-07-16 at 10:18 -0700, Keith Packard wrote:
> On Sun, 2006-07-16 at 08:29 -0400, Stephen C. North wrote:
>
> > fontconfig silently fails over to some default. How can we tell
> > when this happens and warn the user?
>
> You can compare the family name in the returned font with the name you
> requested; if they don't match, fontconfig has gone off and found
> something other than what they requested.
But note that this will be the case when there are aliases involved;
if the user asked for Arial and got the metric-matched Albany AMT
instead, say. So it's probably not good to warn in that case.
Owen
More information about the Fontconfig
mailing list