On Mon, Sep 18, 2017 at 2:35 AM, Werner LEMBERG <[email protected]> wrote:

> > I am working on adding font variations support to cairo, and I am
> > hitting a strange problem in my tests: the first call to
> > FT_Get_MM_Var after FT_New_Face fails with an error code of 85.  If
> > I simply repeat the FT_Get_MM_Var call, everything is fine and
> > things work as expected.
>
> I'm not sure whether you mean 85 or 0x85...  Can you provide a MWE
> that I can compile for further testing?
>

Might take me a bit to create a freetype-only testcase. In the meantime,
here is some more details:
The cairo code I see this problem with essentially does:

 FT_New_Face (font_map->ft_library,
                         unscaled->filename,
                         unscaled->id,
                         &face);

...

 ret = FT_Get_MM_Var (face, &ft_mm_var);
 if (ret != 0) {
        printf ("FT_Get_MM_Var failed: %s\n", getErrorMessage (ret));
        ret = FT_Get_MM_Var (face, &ft_mm_var);
        if (ret == 0)
            printf ("Trying again works. Odd\n");
 }

and this is the output I see:

TESTING font-variations
FT_Get_MM_Var failed: invalid stream operation
Trying again works. Odd
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to