Commit 0f9bbbcf authored by Behdad Esfahbod's avatar Behdad Esfahbod

[varfonts] Query variable font in FcFreeTypeQueryAll()

Returns varfont pattern at the end.
parent 585f0871
......@@ -2092,11 +2092,13 @@ FcFreeTypeQueryAll(const FcChar8 *file,
if (!set || ! FcFontSetAdd (set, pat))
FcPatternDestroy (pat);
}
else
else if (instance_num != 0x8000)
err = 1;
if (instance_num < num_instances && !set_instance_num)
if (!set_instance_num && instance_num < num_instances)
instance_num++;
else if (!set_instance_num && instance_num == num_instances)
instance_num = 0x8000; /* variable font */
else
{
face_num++;
......
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