[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freetype-devel
Subject:    Re: [ft-devel] Problem with FT_Get_MM_Var
From:       Werner LEMBERG <wl () gnu ! org>
Date:       2017-09-19 9:04:35
Message-ID: 20170919.110435.342679686817187793.wl () gnu ! org
[Download RAW message or body]


> 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

Assuming that you have set compile option `FT_DEBUG_LEVEL_ERROR': Can
you run the program within a debugger, setting a conditional
breakpoint on function `FT_Throw' && error == 85?  It would be
interesting to see the backtrace.


    Werner

_______________________________________________
Freetype-devel mailing list
Freetype-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/freetype-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic