> 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
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to