Re: Questionable usage of FcPatternAddInteger()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, April 30, 2012 14:14, Fabian Greffrath wrote:
> Am 30.04.2012 12:50, schrieb Raimund Steger:
>> It will be assigned to, so it would have to be a non-null pointer, like:
>>
>>    FcResult result;
>>    [...]
>>    candidates = FcFontSort (0, pattern, FcTrue, 0,&result);
>
> Alright, but I still don't get it. This variable is unused, even in
> the fc-match code. What's its purpose actually?

Its value will be set to indicate whether there was a match
(FcResultMatch), no match (FcResultNoMatch), or error
(FcResultTypeMismatch, maybe others as well). The first two of these
options coincide with (candidates&&candidates->nfonts>0). See
src/fcmatch.c.

Raimund

-- 
Worringer Str 31 Duesseldorf 40211 Germany +49-179-2981632 icq 16845346

_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/fontconfig


[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux