|
From: | Behdad Esfahbod |
Subject: | Re: [ft-devel] Problem with FT_Get_MM_Var |
Date: | Wed, 20 Sep 2017 13:26:02 -0700 |
On Tue, Sep 19, 2017 at 5:04 AM, Werner LEMBERG <address@hidden> wrote:
> 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.
Can't get it to break there, unfortunately
[Prev in Thread] | Current Thread | [Next in Thread] |