freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Problem with FT_Get_MM_Var


From: Matthias Clasen
Subject: Re: [ft-devel] Problem with FT_Get_MM_Var
Date: Mon, 18 Sep 2017 06:54:21 -0400



On Mon, Sep 18, 2017 at 2:35 AM, Werner LEMBERG <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]