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: Werner LEMBERG
Subject: Re: [ft-devel] Problem with FT_Get_MM_Var
Date: Tue, 19 Sep 2017 11:04:35 +0200 (CEST)

> 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



reply via email to

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